Cosmetic: +Prevent: ... might be used uninitialized in this function
authorshort <>
Sat, 13 Sep 2003 23:15:18 +0000 (23:15 +0000)
committershort <>
Sat, 13 Sep 2003 23:15:18 +0000 (23:15 +0000)
src/client/bug-replay/main.c
src/libcaptive/client/file-slave.c
src/libcaptive/sandbox/parent-Vfs.c
src/libcaptive/sandbox/split.c

index 68a63d2..41afd13 100644 (file)
@@ -465,7 +465,7 @@ GnomeVFSFileSize num_bytes,bytes_written;
                        continue;
                        }
                if (!xmlStrcmp(xml_node->name,"file_seek")) {
-GnomeVFSSeekPosition whence;
+GnomeVFSSeekPosition whence=GNOME_VFS_SEEK_START;      /* Prevent: ... might be used uninitialized in this function */
 const xmlChar *whence_string;
 
                        captive_file_object=CAPTIVE_FILE_OBJECT(object);
index 3bea5a2..42b17aa 100644 (file)
@@ -681,7 +681,7 @@ UNICODE_STRING *name_UnicodeString;
 FILE_RENAME_INFORMATION *FileRenameInformation_structp;
 gsize FileRenameInformation_struct_len;
 IO_STATUS_BLOCK file_IoStatusBlock;
-NTSTATUS err;
+NTSTATUS err=STATUS_SUCCESS;   /* Prevent: ... might be used uninitialized in this function */
 GnomeVFSResult errvfsresult;
 
                /* non-existing dirname assertion */
index 7f90d87..61175f7 100644 (file)
@@ -79,7 +79,7 @@ time_t time_t_local;
 gchar out_fname[PATH_MAX];
 int errint;
 xmlNode *xml_media;
-const gchar *xml_media_type;
+const gchar *xml_media_type="???";     /* Prevent: ... might be used uninitialized in this function */
 
        g_return_if_fail(CAPTIVE_VFS_PARENT_IS_OBJECT(captive_vfs_parent_object));
 
index 1556462..b902a58 100644 (file)
@@ -518,7 +518,8 @@ static xmlNode *options_module_captive_to_xml
        g_return_val_if_fail(src_options_module_captive!=NULL,NULL);
 
        { xmlNode *module=xmlNewTextChild(dest_xml_parent,NULL,"module",NULL);
-       const gchar *type_string,*basename,*cgs;
+       const gchar *type_string="???"; /* Prevent: ... might be used uninitialized in this function */
+       const gchar *basename,*cgs;
 
                basename=src_options_module_captive->pathname_utf8;
                if ((cgs=strrchr(basename,'/')))