summaryrefslogtreecommitdiff
path: root/ext/standard/scanf.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-05 22:28:02 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-05 22:28:02 +0000
commitc668055159a2be33a99f01d93235229468aa3783 (patch)
treebd2c617c59a2ac46fe2aac196070773c0dcfc9ca /ext/standard/scanf.c
parent4ce4a1c32cc1c5156edcab52fb9aa81e236edcf0 (diff)
downloadphp-git-c668055159a2be33a99f01d93235229468aa3783.tar.gz
Remove pointless checks for array_init() return values.
Diffstat (limited to 'ext/standard/scanf.c')
-rw-r--r--ext/standard/scanf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c
index 94aa9a21b0..6f9a35582d 100644
--- a/ext/standard/scanf.c
+++ b/ext/standard/scanf.c
@@ -656,10 +656,8 @@ PHPAPI int php_sscanf_internal( char *string, char *format,
if (!numVars) {
/* allocate an array for return */
- if (array_init(*return_value) == FAILURE) {
- scan_set_error_return(0, return_value);
- return FAILURE;
- }
+ array_init(*return_value);
+
for (i = 0; i < totalVars; i++) {
if (add_next_index_null(*return_value) == FAILURE) {
scan_set_error_return(0, return_value);