aboutsummaryrefslogtreecommitdiff
path: root/src/rc/start-stop-daemon.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@ixsystems.com>2019-07-24 01:26:44 +0800
committerWilliam Hubbs <william.hubbs@sony.com>2019-07-24 12:32:23 -0500
commit7ddc281ab6fd11b63f41059818b0de4748e2821f (patch)
treeef5a50f228a112c7e218e514ee23daa7c7a71672 /src/rc/start-stop-daemon.c
parentc092ff6da174c12b913027ffa33d32622d39b9a0 (diff)
Fix build with Clang
This fixes #313.
Diffstat (limited to 'src/rc/start-stop-daemon.c')
-rw-r--r--src/rc/start-stop-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index baa73216..77794a6c 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -669,7 +669,7 @@ int main(int argc, char **argv)
nav[len++] = p;
for (i = 0; i < opt; i++)
nav[i + len] = argv[i];
- nav[i + len] = '\0';
+ nav[i + len] = NULL;
}
}
}