summaryrefslogtreecommitdiffstats
path: root/src/haveged.c
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2021-08-30 01:31:17 +0200
committerJirka Hladky <jhladky@redhat.com>2021-08-30 01:31:17 +0200
commit3427ae484cd8567145965af659c1fe17300c14b4 (patch)
tree848968ccd2eb931c24c0f453d502e954fd8a40d8 /src/haveged.c
parentPreparing v1.9.15 release (diff)
downloadhaveged-3427ae484cd8567145965af659c1fe17300c14b4.tar.xz
haveged-3427ae484cd8567145965af659c1fe17300c14b4.zip
Fixed issue #60
Diffstat (limited to 'src/haveged.c')
-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] = '/';