From: Tollef Fog Heen Date: Mon, 28 Apr 2008 18:58:36 +0000 (+0200) Subject: 2008-04-28 Tollef Fog Heen X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5998a08da463386dcfb19db3b8509794c661ddfc;p=pkg-config 2008-04-28 Tollef Fog Heen * main.c (main): Make sure log is initialized to prevent segfaults. --- diff --git a/ChangeLog b/ChangeLog index df3374c..10295b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-28 Tollef Fog Heen + + * main.c (main): Make sure log is initialized to prevent + segfaults. + 2008-03-23 Tollef Fog Heen * check/check-conflicts, check/conflicts-test.pc: New test, diff --git a/main.c b/main.c index 5ccb312..a2bb2ce 100644 --- a/main.c +++ b/main.c @@ -206,7 +206,7 @@ main (int argc, char **argv) char **search_dirs; char **iter; gboolean need_newline; - FILE *log; + FILE *log = NULL; const char *pkgname; Package *pkg;