summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/haveged.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haveged.c b/src/haveged.c
index dad3072..3051bd2 100644
--- a/src/haveged.c
+++ b/src/haveged.c
@@ -194,7 +194,9 @@ int main(int argc, char **argv)
params->setup |= MULTI_CORE;
#endif
- first_byte = arg0[0];
+#ifndef NO_COMMAND_MODE
+ first_byte = arg0[0];
+#endif
if (access("/etc/initrd-release", F_OK) >= 0) {
arg0[0] = '@';
path[0] = '/';