From 0a1a6fbcfddf9f4857b1c95f32321bbd27968cea Mon Sep 17 00:00:00 2001 From: sabetts Date: Sat, 18 Aug 2001 21:54:21 +0000 Subject: commands can be called interactively and non-interactively. commands return a result string --- src/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c34436a..4fb0cf2 100644 --- a/src/main.c +++ b/src/main.c @@ -243,7 +243,14 @@ read_rc_file (FILE *file) /* do it */ if (*line != '#') - command (line); + { + char *result; + result = command (0, line); + + /* Gobble the result. */ + if (result) + free (result); + } *line = '\0'; } -- cgit v1.2.3