mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Cleanup maybe-uninitialized compiler warnings.
Found by GCC 6.2.0. Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
37de8e6253
commit
8f304f558d
@ -74,7 +74,7 @@ mcdiffview_dialog_search (WDiff * dview)
|
||||
{
|
||||
char *exp = NULL;
|
||||
int qd_result;
|
||||
size_t num_of_types;
|
||||
size_t num_of_types = 0;
|
||||
gchar **list_of_types;
|
||||
|
||||
list_of_types = mc_search_get_types_strings_array (&num_of_types);
|
||||
|
@ -92,7 +92,7 @@ gboolean
|
||||
editcmd_dialog_search_show (WEdit * edit)
|
||||
{
|
||||
char *search_text;
|
||||
size_t num_of_types;
|
||||
size_t num_of_types = 0;
|
||||
gchar **list_of_types;
|
||||
int dialog_result;
|
||||
|
||||
@ -188,7 +188,7 @@ void
|
||||
editcmd_dialog_replace_show (WEdit * edit, const char *search_default, const char *replace_default,
|
||||
/*@out@ */ char **search_text, /*@out@ */ char **replace_text)
|
||||
{
|
||||
size_t num_of_types;
|
||||
size_t num_of_types = 0;
|
||||
gchar **list_of_types;
|
||||
|
||||
if ((search_default == NULL) || (*search_default == '\0'))
|
||||
|
@ -622,7 +622,7 @@ execute_external_editor_or_viewer (const char *command, const vfs_path_t * filen
|
||||
vfs_path_t *localcopy_vpath = NULL;
|
||||
const vfs_path_t *do_execute_vpath;
|
||||
char *extern_cmd_options;
|
||||
time_t mtime;
|
||||
time_t mtime = 0;
|
||||
|
||||
if (!execute_prepare_with_vfs_arg (filename_vpath, &localcopy_vpath, &mtime))
|
||||
return;
|
||||
|
@ -219,7 +219,7 @@ main (int argc, char *argv[])
|
||||
{
|
||||
GError *mcerror = NULL;
|
||||
gboolean config_migrated = FALSE;
|
||||
char *config_migrate_msg;
|
||||
char *config_migrate_msg = NULL;
|
||||
int exit_code = EXIT_FAILURE;
|
||||
|
||||
mc_global.timer = mc_timer_new ();
|
||||
|
@ -156,7 +156,7 @@ sftpfs_open_file (vfs_file_handler_t * file_handler, int flags, mode_t mode, GEr
|
||||
|
||||
if (do_append)
|
||||
{
|
||||
struct stat file_info;
|
||||
struct stat file_info = { 0 };
|
||||
|
||||
if (sftpfs_fstat (file_handler, &file_info, mcerror) == 0)
|
||||
libssh2_sftp_seek64 (file_handler_data->handle, file_info.st_size);
|
||||
|
@ -78,7 +78,7 @@ mcview_dialog_search (WView * view)
|
||||
{
|
||||
char *exp = NULL;
|
||||
int qd_result;
|
||||
size_t num_of_types;
|
||||
size_t num_of_types = 0;
|
||||
gchar **list_of_types;
|
||||
|
||||
list_of_types = mc_search_get_types_strings_array (&num_of_types);
|
||||
|
Loading…
Reference in New Issue
Block a user