From 4c978631096a97e1cd68dfe40a1583de537112c4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 3 Feb 2007 03:31:13 +0000 Subject: assorted fixes for bugs found with randomconfig --- shell/hush.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shell') 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); } } -- cgit v1.2.3