aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c8
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 }