From 643fc6b26f56009790b46350386ebb1036353830 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 22 Mar 2017 18:33:29 +0000 Subject: [PATCH] Add initializations missed in r315728. X-MFC With: r315728 --- lib/libproc/proc_create.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libproc/proc_create.c b/lib/libproc/proc_create.c index 10a53cd90eb5..0d0c5a31e3f6 100644 --- a/lib/libproc/proc_create.c +++ b/lib/libproc/proc_create.c @@ -184,6 +184,9 @@ proc_create(const char *file, char * const *argv, proc_child_func *pcf, if (elf_version(EV_CURRENT) == EV_NONE) return (ENOENT); + error = 0; + phdl = NULL; + /* Fork a new process. */ if ((pid = vfork()) == -1) error = errno;