summaryrefslogtreecommitdiff
path: root/src/communications.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/communications.c
parentbd72362cf682c093fe84802b6c08b67f6f9d819e (diff)
downloadratpoison-0a1a6fbcfddf9f4857b1c95f32321bbd27968cea.zip
commands can be called interactively and non-interactively. commands return a result string
Diffstat (limited to 'src/communications.c')
-rw-r--r--src/communications.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/communications.c b/src/communications.c
index 0a0194d..8b6cd66 100644
--- a/src/communications.c
+++ b/src/communications.c
@@ -89,7 +89,7 @@ recieve_command_result (Window w)
True, XA_STRING, &type_ret, &format_ret, &nitems,
&bytes_after, &result) == Success)
{
- if (result)
+ if (result && strlen (result))
{
printf ("%s\n", result);
}