aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-03-22 18:33:29 +0000
committerMark Johnston <markj@FreeBSD.org>2017-03-22 18:33:29 +0000
commit643fc6b26f56009790b46350386ebb1036353830 (patch)
treee9fcf3e7b55940a1674bfce16ed6ec04e6dfbf1b
parent8440c5e621668d15ab3157f0d6f4a8d1d8507ed1 (diff)
downloadsrc-643fc6b26f56009790b46350386ebb1036353830.tar.gz
src-643fc6b26f56009790b46350386ebb1036353830.zip
Add initializations missed in r315728.
X-MFC With: r315728
Notes
Notes: svn path=/head/; revision=315729
-rw-r--r--lib/libproc/proc_create.c3
1 files changed, 3 insertions, 0 deletions
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;