Fixed a number of uses of uninitialized variables by adding assertions

or other sanity checks, code reshuffling, or fixing broken behavior.
This commit is contained in:
Kees van Reeuwijk
2010-01-27 10:23:58 +00:00
parent c6eb51d66a
commit 2ba237cd4e
14 changed files with 35 additions and 20 deletions

View File

@@ -107,6 +107,7 @@ o_print(va_list *ap, int flags, char *s, char c, int precision, int is_signed)
case 'x':
case 'X':
case 'p': base = 16; break;
default: base = 10; break;
}
s = _i_compute(unsigned_val, base, s, precision);

View File

@@ -46,6 +46,7 @@ o_collect(register int c, register FILE *stream, char type,
case 'u': base = 10; break;
case 'o': base = 8; break;
case 'b': base = 2; break;
default: base = 10; break;
}
if (c == '-' || c == '+') {