Skip to contentSkip to conversation

Missing NULL pointer init in tap.c

PATCH David Goulet 1 participant 1 message Jul 12, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20130712154108.GA16307@Krystal

#1 lore raw

Merged!

Mathieu Desnoyers:

Quoted 17 lines

Could lead to free() of unitialized pointer.

---

tests/utils/tap/tap.c +1 -1
index a430951..86c89a2 100644
@@ -294,7 +294,7 @@ int
 skip(unsigned int n, char *fmt, ...)
 {
 	va_list ap;
-	char *skip_msg;
+	char *skip_msg = NULL;
 
 	LOCK;