Uninitialized variable compiler warnings on Linux

git-svn-id: svn://10.0.0.236/trunk@10119 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcafee%netscape.com
1998-09-16 04:59:00 +00:00
parent e09369c1f8
commit e0251b80be
4 changed files with 12 additions and 11 deletions

View File

@@ -905,7 +905,8 @@ NET_RemoveDiskCacheObjects(uint32 remove_num)
DBT *corrupt_entry_array[CORRUPT_ENTRY_ARRAY_SIZE];
uint32 total_cl=0;
uint32 total_number=0;
time_t date, lock_date, last_modified_date;
time_t date, lock_date;
time_t last_modified_date = (time_t) 0;
uint32 i,j;
char *filename;
char *url_address;
@@ -1787,12 +1788,12 @@ NET_CacheConverter (FO_Present_Types format_out,
if (URL_s->address) /* Why are we doing this? */
{
char *tail;
char *tail = NULL;
char *suffix;
char *allocSuffix; /* in case we have to allocate a suffix */
char *end;
char *junk;
char old_char;
char old_char = 0;
suffix = allocSuffix = NULL;
@@ -2051,12 +2052,12 @@ NET_CacheConverter (FO_Present_Types format_out,
if (cache_object->address)
{
char *tail;
char *tail = NULL;
char *suffix;
char *allocSuffix; /* in case we have to allocate a suffix */
char *end;
char *junk;
char old_char;
char old_char = 0;
suffix = allocSuffix = NULL;
@@ -2683,7 +2684,7 @@ NET_FindURLInCache(URL_Struct * URL_s, MWContext *ctxt)
XP_StatStruct stat_entry;
int status;
char *byterange;
char byterange_char;
char byterange_char = 0;
DBT *key;
DBT data;
TRACEMSG(("Checking for URL in cache"));

View File

@@ -1017,7 +1017,7 @@ PUBLIC int CACHE_EmptyCache(ExtCacheDBInfo *db)
*/
PUBLIC int CACHE_RemoveCache(ExtCacheDBInfo *db)
{
int ret;
int ret = 0;
ExtCacheDBInfo *db_info;
XP_List *tmpList;
@@ -1061,7 +1061,7 @@ CACHE_FindURLInCache(URL_Struct *URL_s, MWContext *ctxt)
XP_List *list_ptr;
/* larubbio */
XP_FileType fileType;
XP_FileType fileType = 0;
TRACEMSG(("Checking for URL in external cache"));

View File

@@ -366,7 +366,7 @@ NET_ParseUploadURL( char *full_location, char **location,
char *at_ptr;
char *colon_ptr;
char at;
char colon;
char colon = 0;
if( !full_location || !location ) return FALSE;

View File

@@ -165,12 +165,12 @@ net_parse_menu (ActiveEntry * cur_entry)
{
GopherConData * connection_data = (GopherConData *)cur_entry->con_data;
char gopher_type;
char *name;
char *name=NULL;
char *gopher_path=0;
char *port;
char *ptr;
char *line;
char *host;
char *host=NULL;
CE_STATUS = NET_BufferedReadLine(CE_SOCK, &line, &CD_DATA_BUF,
&CD_DATA_BUF_SIZE, &CD_PAUSE_FOR_READ);