[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6266) uninitialized var in overlays/dynlist.c:dl_cfgen()



Full_Name: Hallvard B Furuseth
Version: HEAD
OS: Linux
URL: 
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard


gcc complains
  dynlist.c:1537: warning: 'dlml' may be used uninitialized in this function
Looks like its declaration at least should be moved outside the loop below
and it should be initialized to something.  This is the complete use of dlml:

		for ( ... ) {
			dynlist_map_t *dlml;
			if ( dlm == NULL ) {
				dlml = NULL;
			}
			if ( dlml != NULL ) 
				dlml->dlm_next = dlmp;
			dlml = dlmp;
		}