diff options
author | Roy Marples <roy@marples.name> | 2008-04-06 13:21:42 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-06 13:21:42 +0000 |
commit | 5d38d4d6e9e1e758395546e38af8e8c738043fd1 (patch) | |
tree | cbe76714d1cd230b4e16dd87a4daca435c812825 /src | |
parent | c18c4fc4ccfb298cf6eed8f0b1c16cf30ec5b724 (diff) |
p could be null here.
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) |