fix buglets found by randomconfig

This commit is contained in:
Denis Vlasenko 2007-12-21 22:18:16 +00:00
parent 26b6fba9d3
commit ee87ebf381
2 changed files with 4 additions and 2 deletions

View File

@ -12900,7 +12900,9 @@ int ash_main(int argc, char **argv)
INIT_G_misc(); INIT_G_misc();
INIT_G_memstack(); INIT_G_memstack();
INIT_G_var(); INIT_G_var();
#if ENABLE_ASH_ALIAS
INIT_G_alias(); INIT_G_alias();
#endif
INIT_G_cmdtable(); INIT_G_cmdtable();
#if PROFILE #if PROFILE

View File

@ -52,7 +52,7 @@ static void make_device(char *path, int delete)
if (ENABLE_FEATURE_MDEV_CONF) { if (ENABLE_FEATURE_MDEV_CONF) {
FILE *fp; FILE *fp;
char *line, *vline; char *line, *vline;
size_t lineno = 0; unsigned lineno = 0;
/* If we have a config file, look up the user settings */ /* If we have a config file, look up the user settings */
fp = fopen_or_warn("/etc/mdev.conf", "r"); fp = fopen_or_warn("/etc/mdev.conf", "r");
@ -149,7 +149,7 @@ static void make_device(char *path, int delete)
/* Did everything parse happily? */ /* Did everything parse happily? */
if (field <= 2) if (field <= 2)
bb_error_msg_and_die("bad line %i", lineno); bb_error_msg_and_die("bad line %u", lineno);
next_line: next_line:
free(line); free(line);