From 8dc12642887b7faa048e1212cc634fe8040e261d Mon Sep 17 00:00:00 2001 From: short <> Date: Sat, 13 Sep 2003 23:15:18 +0000 Subject: [PATCH] Cosmetic: +Prevent: ... might be used uninitialized in this function --- src/client/bug-replay/main.c | 2 +- src/libcaptive/client/file-slave.c | 2 +- src/libcaptive/sandbox/parent-Vfs.c | 2 +- src/libcaptive/sandbox/split.c | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/client/bug-replay/main.c b/src/client/bug-replay/main.c index 68a63d2..41afd13 100644 --- a/src/client/bug-replay/main.c +++ b/src/client/bug-replay/main.c @@ -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); diff --git a/src/libcaptive/client/file-slave.c b/src/libcaptive/client/file-slave.c index 3bea5a2..42b17aa 100644 --- a/src/libcaptive/client/file-slave.c +++ b/src/libcaptive/client/file-slave.c @@ -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 */ diff --git a/src/libcaptive/sandbox/parent-Vfs.c b/src/libcaptive/sandbox/parent-Vfs.c index 7f90d87..61175f7 100644 --- a/src/libcaptive/sandbox/parent-Vfs.c +++ b/src/libcaptive/sandbox/parent-Vfs.c @@ -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)); diff --git a/src/libcaptive/sandbox/split.c b/src/libcaptive/sandbox/split.c index 1556462..b902a58 100644 --- a/src/libcaptive/sandbox/split.c +++ b/src/libcaptive/sandbox/split.c @@ -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,'/'))) -- 1.8.3.1