aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index e6884154..1ee7330a 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -634,7 +634,7 @@ int main (int argc, char **argv)
{
switch (opt) {
case 'o':
- if (strlen (optarg) == 0)
+ if (*optarg == '\0')
optarg = NULL;
exit (set_ksoftlevel (optarg) ? EXIT_SUCCESS : EXIT_FAILURE);
case_RC_COMMON_GETOPT