diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/rc-applets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index 70f3a044..d434be44 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -110,7 +110,7 @@ static int do_e(int argc, char **argv) } else if (strcmp(applet, "esyslog") == 0 || strcmp(applet, "elog") == 0) { p = strchr(argv[0], '.'); - if ((level = syslog_decode(p + 1, prioritynames)) == -1) + if (!p || (level = syslog_decode(p + 1, prioritynames)) == -1) eerrorx("%s: invalid log level `%s'", applet, argv[0]); if (argc < 3) |