com php-src: fix unitialized val usage: ext/gd/gd.c
| From: | Anatol Belski | Date: | Wed, 04 Feb 2015 17:13:28 +0000 |
| Subject: | com php-src: fix unitialized val usage: ext/gd/gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84640@lists.php.net to get a copy of this message | ||
Commit: 4a1e4e2870bee73e6e5fc34cab246ca07d857257
Author: Anatol Belski <ab@php.net> Wed, 4 Feb 2015 18:03:06 +0100
Parents: b5d3c5ca8dee6303498849448e3574cc3642eeea
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a1e4e2870bee73e6e5fc34cab246ca07d857257
Log:
fix unitialized val usage
Changed paths:
M ext/gd/gd.c
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 3783fe8..61050ba 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1977,7 +1977,7 @@ PHP_FUNCTION(imagegrabwindow)
zend_long lwindow_handle;
typedef BOOL (WINAPI *tPrintWindow)(HWND, HDC,UINT);
tPrintWindow pPrintWindow = 0;
- gdImagePtr im;
+ gdImagePtr im = NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &lwindow_handle, &client_area)
== FAILURE) {
RETURN_FALSE;