diff options
Diffstat (limited to 'pkg/rootless/rootless_linux.c')
-rw-r--r-- | pkg/rootless/rootless_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index f107af7c7..163f46052 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -66,6 +66,8 @@ get_cmd_line_args (pid_t pid) argc++; argv = malloc (sizeof (char *) * (argc + 1)); + if (argv == NULL) + return NULL; argc = 0; argv[argc++] = buffer; |