From: Jon Trulson Date: Wed, 11 Apr 2018 17:53:39 +0000 (-0600) Subject: dtfile/Prefs: CID 88095,88407,89162,89164,89283,89445 X-Git-Tag: 2.2.4a~111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=694b6ef5ebc26a1da7694e1ed1fbf5d35939b1b9;p=oweals%2Fcde.git dtfile/Prefs: CID 88095,88407,89162,89164,89283,89445 --- diff --git a/cde/programs/dtfile/Prefs.c b/cde/programs/dtfile/Prefs.c index 0b8143c4..c092c941 100644 --- a/cde/programs/dtfile/Prefs.c +++ b/cde/programs/dtfile/Prefs.c @@ -1743,7 +1743,7 @@ ShowTypeToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == SINGLE_DIRECTORY) buf = Single_directory; @@ -1804,7 +1804,7 @@ TreeFilesToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == TREE_FILES_NEVER) buf = Tree_files_never; @@ -1869,7 +1869,7 @@ ViewToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == BY_NAME) buf = By_name; @@ -1939,7 +1939,7 @@ OrderToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == ORDER_BY_FILE_TYPE) buf = Order_by_file_type; @@ -2008,7 +2008,7 @@ DirectionToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == DIRECTION_ASCENDING) buf = Direction_ascending; @@ -2032,7 +2032,7 @@ RandomToString( unsigned char *value, char *out_buf ) { - char * buf; + char * buf = NULL; if (*value == RANDOM_ON) buf = Random_on;