From: Sergey Poznyakoff Date: Mon, 29 Oct 2007 08:51:46 +0000 (+0000) Subject: (sys_exec_info_script): Initialize buf. Problem reported by Bengt-Arne Fjellner. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=eb59c14a1f4cd1ff9d0d41500e35158d6ead5cf3;p=chaz%2Ftar (sys_exec_info_script): Initialize buf. Problem reported by Bengt-Arne Fjellner. --- diff --git a/src/system.c b/src/system.c index ba1d191..a277833 100644 --- a/src/system.c +++ b/src/system.c @@ -785,7 +785,7 @@ sys_exec_info_script (const char **archive_name, int volume_number) int rc; int status; - char *buf; + char *buf = NULL; size_t size = 0; FILE *fp;