Skip to content
Snippets Groups Projects
Commit ad8613f8 authored by Olof Barring's avatar Olof Barring Committed by Steven Murray
Browse files

#3174 Initialise the place pointer to EMSG in order to avoid SEGV

parent 3972063e
Branches
Tags
No related merge requests found
......@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*/
#ifndef lint
static char sccsid[] = "@(#)$RCSfile: Cgetopt.c,v $ $Revision: 1.6 $ $Date: 2004/04/22 16:42:51 $ CERN IT-PDP/DM Jean-Damien Durand";
static char sccsid[] = "@(#)$RCSfile: Cgetopt.c,v $ $Revision: 1.7 $ $Date: 2004/04/28 14:24:44 $ CERN IT-PDP/DM Jean-Damien Durand";
#endif /* lint */
/* ============== */
......@@ -100,6 +100,7 @@ _Cgetopt_internal(nargc, nargv, ostr)
return(-1);
}
place = EMSG;
if (Coptreset || !*place) { /* update scanning pointer */
Coptreset = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment