Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 18:33:29 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315729 - head/lib/libproc
Message-ID:  <201703221833.v2MIXTQk049729@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Mar 22 18:33:29 2017
New Revision: 315729
URL: https://svnweb.freebsd.org/changeset/base/315729

Log:
  Add initializations missed in r315728.
  
  X-MFC With:	r315728

Modified:
  head/lib/libproc/proc_create.c

Modified: head/lib/libproc/proc_create.c
==============================================================================
--- head/lib/libproc/proc_create.c	Wed Mar 22 18:31:44 2017	(r315728)
+++ head/lib/libproc/proc_create.c	Wed Mar 22 18:33:29 2017	(r315729)
@@ -184,6 +184,9 @@ proc_create(const char *file, char * con
 	if (elf_version(EV_CURRENT) == EV_NONE)
 		return (ENOENT);
 
+	error = 0;
+	phdl = NULL;
+
 	/* Fork a new process. */
 	if ((pid = vfork()) == -1)
 		error = errno;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703221833.v2MIXTQk049729>