diff options
| author | Thies C. Arntzen <thies@php.net> | 2002-03-19 11:25:21 +0000 |
|---|---|---|
| committer | Thies C. Arntzen <thies@php.net> | 2002-03-19 11:25:21 +0000 |
| commit | 3550d75d0fd81871bb2fe68ce65e17fc84ba7b52 (patch) | |
| tree | abe490078808e64c60a3ba30a8e7317a4f49fd6e /ext/standard/php_smart_str.h | |
| parent | 737ea7691a8efcb7b923da1200e53d76331e78df (diff) | |
| download | php-git-3550d75d0fd81871bb2fe68ce65e17fc84ba7b52.tar.gz | |
fix #12793 - serialize will now spit a notice if the return value of __sleep is
bogus.
Diffstat (limited to 'ext/standard/php_smart_str.h')
| -rw-r--r-- | ext/standard/php_smart_str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index a1912141f4..3bf94469ce 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -24,7 +24,7 @@ #include <stdlib.h> #include <zend.h> -#define smart_str_0(x) ((x)->c[(x)->len] = '\0') +#define smart_str_0(x) do { if ((x)->c) { (x)->c[(x)->len] = '\0'; } } while (0); #ifndef SMART_STR_PREALLOC #define SMART_STR_PREALLOC 128 |
