diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 03:31:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 03:31:13 +0000 |
commit | 4c978631096a97e1cd68dfe40a1583de537112c4 (patch) | |
tree | 72450c173aeeb2b13c0965635f1867f76738f42d /shell | |
parent | e968fcd562da08591b0f7990b839174ad93fc7b4 (diff) |
assorted fixes for bugs found with randomconfig
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c index 7bc3b9a1e..c3640ed3a 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2795,8 +2795,8 @@ int hush_main(int argc, char **argv) } debug_printf("\nrunning script '%s'\n", argv[optind]); - global_argv = argv+optind; - global_argc = argc-optind; + global_argv = argv + optind; + global_argc = argc - optind; input = xfopen(argv[optind], "r"); opt = parse_file_outer(input); @@ -2809,8 +2809,8 @@ int hush_main(int argc, char **argv) for (cur = top_vars; cur; cur = tmp) { tmp = cur->next; if (!cur->flg_read_only) { - free(cur->name); - free(cur->value); + free((char*)cur->name); + free((char*)cur->value); free(cur); } } |