Silence compiler warning in imapx_job_matches()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 21 Jun 2010 19:56:40 +0000 (20:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 24 Jun 2010 11:03:43 +0000 (12:03 +0100)
It's a false positive, but it's annoying:
camel-imapx-server.c: In function ‘imapx_job_matches’:
camel-imapx-server.c:1004: warning: ‘full_name’ may be used uninitialized in this function

camel/providers/imapx/camel-imapx-server.c

index 0e4b777..fbbfc36 100644 (file)
@@ -1002,7 +1002,7 @@ found:
 static gboolean
 imapx_job_matches (const gchar *folder_name, CamelIMAPXJob *job, guint32 type, const gchar *uid)
 {
-       const gchar *full_name;
+       const gchar *full_name = NULL;
 
        if (job->folder)
                full_name = camel_folder_get_full_name (job->folder);