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) | |
| download | busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.tar.gz busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.tar.bz2 busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.zip | |
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) | |||
| 2795 | } | 2795 | } |
| 2796 | 2796 | ||
| 2797 | debug_printf("\nrunning script '%s'\n", argv[optind]); | 2797 | debug_printf("\nrunning script '%s'\n", argv[optind]); |
| 2798 | global_argv = argv+optind; | 2798 | global_argv = argv + optind; |
| 2799 | global_argc = argc-optind; | 2799 | global_argc = argc - optind; |
| 2800 | input = xfopen(argv[optind], "r"); | 2800 | input = xfopen(argv[optind], "r"); |
| 2801 | opt = parse_file_outer(input); | 2801 | opt = parse_file_outer(input); |
| 2802 | 2802 | ||
| @@ -2809,8 +2809,8 @@ int hush_main(int argc, char **argv) | |||
| 2809 | for (cur = top_vars; cur; cur = tmp) { | 2809 | for (cur = top_vars; cur; cur = tmp) { |
| 2810 | tmp = cur->next; | 2810 | tmp = cur->next; |
| 2811 | if (!cur->flg_read_only) { | 2811 | if (!cur->flg_read_only) { |
| 2812 | free(cur->name); | 2812 | free((char*)cur->name); |
| 2813 | free(cur->value); | 2813 | free((char*)cur->value); |
| 2814 | free(cur); | 2814 | free(cur); |
| 2815 | } | 2815 | } |
| 2816 | } | 2816 | } |
