summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/hyperwave/hw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index bb1d46de87..cf5ca86590 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -244,7 +244,7 @@ int make_return_objrec(pval **return_value, char **objrecs, int count)
}
hidden = collhead = fullcollhead = total = 0;
- collheadnr = fullcollheadnr = -1;
+ collheadnr = fullcollheadnr = -1;
for(i=0; i<count; i++) {
/* Fill the array with entries. No need to free objrecs[i], since
* it is not duplicated in add_next_index_string().
@@ -1326,7 +1326,7 @@ php_printf("%s", object);
}
/* }}} */
-/* {{{ proto string hw_getobject(int link, int objid [, string linkroot])
+/* {{{ proto string hw_getobject(int link, int objid [, string query])
Returns object record */
PHP_FUNCTION(hw_getobject) {
pval **argv[3];
@@ -1370,8 +1370,9 @@ PHP_FUNCTION(hw_getobject) {
zval **keydata;
lht = (*argv[1])->value.ht;
- if(0 == (count = zend_hash_num_elements(lht)))
+ if(0 == (count = zend_hash_num_elements(lht))) {
RETURN_FALSE;
+ }
ids = emalloc(count * sizeof(hw_objectID));
zend_hash_internal_pointer_reset(lht);