cvs: php-src(PHP_4_3) /ext/dba/libinifile inifile.c

From: Date: Wed, 16 Jul 2003 20:56:06 +0000
Subject: cvs: php-src(PHP_4_3) /ext/dba/libinifile inifile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22622@lists.php.net to get a copy of this message
helly Wed Jul 16 16:56:06 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/dba/libinifile inifile.c Log: MFH: Fix handling of empty settings Index: php-src/ext/dba/libinifile/inifile.c diff -u php-src/ext/dba/libinifile/inifile.c:1.6.2.1 php-src/ext/dba/libinifile/inifile.c:1.6.2.2 --- php-src/ext/dba/libinifile/inifile.c:1.6.2.1 Thu May 29 10:16:25 2003 +++ php-src/ext/dba/libinifile/inifile.c Wed Jul 16 16:56:06 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: inifile.c,v 1.6.2.1 2003/05/29 14:16:25 helly Exp $ */ +/* $Id: inifile.c,v 1.6.2.2 2003/07/16 20:56:06 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -44,7 +44,7 @@ /* {{{ inifile_version */ char *inifile_version() { - return "1.0, $Revision: 1.6.2.1 $"; + return "1.0, $Revision: 1.6.2.2 $"; } /* }}} */ @@ -154,7 +154,7 @@ return NULL; } val = (char*)str; - while (strchr(" \t\r\n", *val)) { + while (*val && strchr(" \t\r\n", *val)) { val++; } l = strlen(val);

« previous php.cvs (#22622) next »