2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>

* libmisc/shell/hexdump-parse.c: Fix uninitialized warning.
This commit is contained in:
Joel Sherrill
2010-01-20 15:19:19 +00:00
parent aaaffd4cba
commit efb68e8bf8
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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