forked from Imagelibrary/rtems
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/hexdump-parse.c: Fix uninitialized warning.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libmisc/shell/hexdump-parse.c: Fix uninitialized warning.
|
||||
|
||||
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
Coverity Id 30
|
||||
|
||||
@@ -217,6 +217,7 @@ rewrite(rtems_shell_hexdump_globals* globals, FS *fs)
|
||||
int nconv, prec;
|
||||
size_t len;
|
||||
|
||||
pr = NULL;
|
||||
nextpr = NULL;
|
||||
prec = 0;
|
||||
|
||||
@@ -450,7 +451,8 @@ isint2: switch(fu->bcnt) {
|
||||
(void)printf("\n");
|
||||
}
|
||||
#endif
|
||||
free(pr);
|
||||
if (pr)
|
||||
free(pr);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user