Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2013-02-25 04:45:11 +0400
committermichael-grunder <michael.grunder@gmail.com>2013-02-25 04:45:11 +0400
commit9954974778b60123ef27e2af9270c2478f9c3743 (patch)
treef65eba1f71542df7e3993eac36b434eb04871880 /library.c
parent51264b7834236a6063bb25f2d0ce2eb41bdc8655 (diff)
Return a proper value
redis_sock_read_multibulk_reply_zipped_with_flag should always return a value. We merged in a change that handled a certain error condition that was using RETURN_FALSE (and therefore not returning a value) Simply changed this to RETVAL_FALSE and return -1;
Diffstat (limited to 'library.c')
-rw-r--r--library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/library.c b/library.c
index 944dcf57..f8add0af 100644
--- a/library.c
+++ b/library.c
@@ -720,7 +720,7 @@ PHPAPI int redis_sock_read_multibulk_reply_zipped_with_flag(INTERNAL_FUNCTION_PA
IF_MULTI_OR_PIPELINE() {
add_next_index_bool(z_tab, 0);
} else {
- RETURN_FALSE;
+ RETVAL_FALSE;
}
return -1;
}