]> granicus.if.org Git - check/commitdiff
Initialize buf before use
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:09 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:09 +0000 (04:13 +0000)
Patch provided by Michael Piszczek

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1152 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_pack.c

index 0547987dab02622ff763e52e5f279404ae26e136..fc4a020d9fae485e4026012eff9e5ced82be7158 100644 (file)
@@ -298,7 +298,7 @@ static void ppack_cleanup(void *mutex)
 
 void ppack(FILE * fdes, enum ck_msg_type type, CheckMsg * msg)
 {
-    char *buf;
+    char *buf = NULL;
     int n;
     ssize_t r;