]> err.no Git - pkg-config/commitdiff
2008-04-28 Tollef Fog Heen <tfheen@err.no>
authorTollef Fog Heen <tfheen@err.no>
Mon, 28 Apr 2008 18:58:36 +0000 (20:58 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 28 Apr 2008 18:58:36 +0000 (20:58 +0200)
* main.c (main): Make sure log is initialized to prevent
segfaults.

ChangeLog
main.c

index df3374cc37a203025c9c5752f843b7d79be9fe0c..10295b2c3fa7168974504c3aa895f2a718cdfbc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-28  Tollef Fog Heen  <tfheen@err.no>
+
+       * main.c (main): Make sure log is initialized to prevent
+       segfaults.
+
 2008-03-23  Tollef Fog Heen  <tfheen@err.no>
 
        * check/check-conflicts, check/conflicts-test.pc: New test,
diff --git a/main.c b/main.c
index 5ccb312c4aa5392ad7370fd62964ca4a9aa3b83a..a2bb2ce56a0d708e5f1e91db350079bab3b3ae56 100644 (file)
--- 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;