summaryrefslogtreecommitdiff
path: root/server/util/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/util/server.c')
-rw-r--r--server/util/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/util/server.c b/server/util/server.c
index def44f03..6983fcaa 100644
--- a/server/util/server.c
+++ b/server/util/server.c
@@ -242,7 +242,10 @@ int server_setup(const char *name, int flags,
uint16_t stdin_event_flags;
int ret = EOK;
- debug_prg_name = name;
+ debug_prg_name = strdup(name);
+ if (!debug_prg_name) {
+ return ENOMEM;
+ }
setup_signals();