aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/librc/librc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 8ce9469d..376f45c7 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -447,12 +447,12 @@ char *rc_service_description(const char *service, const char *option)
if (! (svc = rc_service_resolve(service)))
return NULL;
- if (! option)
+ if (!option)
option = "";
l = strlen(DESCSTR) + strlen(svc) + strlen(option) + 2;
cmd = xmalloc(sizeof(char) * l);
- snprintf(cmd, l, DESCSTR, svc, option ? "_" : "", option);
+ snprintf(cmd, l, DESCSTR, svc, *option ? "_" : "", option);
free(svc);
if ((fp = popen(cmd, "r"))) {
rc_getline(&desc, &len, fp);