cvs: embed /php-irssi php-core.c
| From: | Tal Peer | Date: | Fri, 28 Mar 2003 13:31:45 +0000 |
| Subject: | cvs: embed /php-irssi php-core.c | ||
| Groups: | php.embed.cvs | ||
| Request: | Send a blank email to php-embed-cvs+get-38@lists.php.net to get a copy of this message | ||
tal Fri Mar 28 08:31:45 2003 EDT
Modified files:
/embed/php-irssi php-core.c
Log:
- Fixed a segfault when using set without arguments
# spotted by Benjamin
Index: embed/php-irssi/php-core.c
diff -u embed/php-irssi/php-core.c:1.16 embed/php-irssi/php-core.c:1.17
--- embed/php-irssi/php-core.c:1.16 Fri Mar 28 08:19:24 2003
+++ embed/php-irssi/php-core.c Fri Mar 28 08:31:45 2003
@@ -15,7 +15,7 @@
| Authors: Wez Furlong <wez@php.net> |
| Tal Peer <tal@php.net> |
+----------------------------------------------------------------------+
- $Id: php-core.c,v 1.16 2003/03/28 13:19:24 tal Exp $
+ $Id: php-core.c,v 1.17 2003/03/28 13:31:45 tal Exp $
*/
#define MODULE_NAME "php/core"
#include "common.h"
@@ -177,6 +177,10 @@
/* Handler for "/php set" command */
static void cmd_php_set(const char *data)
{
+ if (strcmp(data, "") == 0) {
+ return;
+ }
+
char *val;
char *entry;