Code

Forgot explicit initialization of FILE*.
authorJasper van de Gronde <th.v.d.gronde@hccnet.nl>
Wed, 2 Jun 2010 15:27:02 +0000 (17:27 +0200)
committerJasper van de Gronde <th.v.d.gronde@hccnet.nl>
Wed, 2 Jun 2010 15:27:02 +0000 (17:27 +0200)
src/inkscape.cpp

index 6361e36c1bd14d933ae0bd562dcffc07addb9f74..c10581a9161e683a7cf052b0b68b43df7fe41965 100644 (file)
@@ -644,7 +644,7 @@ inkscape_crash_handler (int /*signum*/)
                 curdir,
                 inkscapedir
             };
-            FILE *file;
+            FILE *file = 0;
             for(size_t i=0; i<sizeof(locations)/sizeof(*locations); i++) {
                 if (!locations[i]) continue; // It seems to be okay, but just in case
                 gchar * filename = g_build_filename(locations[i], c, NULL);