summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-18 21:54:21 +0000
committersabetts <sabetts>2001-08-18 21:54:21 +0000
commit0a1a6fbcfddf9f4857b1c95f32321bbd27968cea (patch)
treed7d799cffdbc3e27a37a8bbeac1393694def1c88 /src/main.c
parentbd72362cf682c093fe84802b6c08b67f6f9d819e (diff)
downloadratpoison-0a1a6fbcfddf9f4857b1c95f32321bbd27968cea.zip
commands can be called interactively and non-interactively. commands return a result string
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 8 insertions, 1 deletions
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';
}