cvs: /php4/ext/icap php3_icap.c
| From: | Mark Musone | Date: | Thu, 19 Aug 1999 19:02:24 +0000 |
| Subject: | cvs: /php4/ext/icap php3_icap.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3597@lists.php.net to get a copy of this message | ||
musone Thu Aug 19 15:02:24 1999 EDT
Modified files:
/php4/ext/icap php3_icap.c
Log:
*smack*...must..initialize...return...value..
Index: php4/ext/icap/php3_icap.c
diff -u php4/ext/icap/php3_icap.c:1.8 php4/ext/icap/php3_icap.c:1.9
--- php4/ext/icap/php3_icap.c:1.8 Tue Aug 17 12:55:01 1999
+++ php4/ext/icap/php3_icap.c Thu Aug 19 15:02:22 1999
@@ -429,7 +429,8 @@
}
}
-
+
+g_cal_list=NULL;
cal_search(icap_le_struct->icap_stream,&begincal,(myargc == 3) ? NULL : &endcal);
my_cal_list=g_cal_list;
while(my_cal_list != NULL)
@@ -437,7 +438,7 @@
add_next_index_long(return_value,my_cal_list->uid);
my_cal_list=my_cal_list->next;
free(g_cal_list);
- g_cal_list=my_cal_list;
+ g_cal_list=my_cal_list;
}
}
/* }}} */
@@ -542,6 +543,10 @@
RETURN_FALSE;
}
+ if (array_init(return_value) == FAILURE) {
+ RETURN_FALSE;
+ }
+
if(_php3_hash_find(date->value.ht,"year",sizeof("year"),(void **)
&pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
@@ -569,14 +574,15 @@
mytime.minute=(*pvalue)->value.lval;
}
+ g_cal_list=NULL;
cal_search_alarming(icap_le_struct->icap_stream,&mydate,&mytime);
- my_cal_list=g_cal_list;
+ my_cal_list=g_cal_list;
while(my_cal_list != NULL)
{
add_next_index_long(return_value,my_cal_list->uid);
my_cal_list=my_cal_list->next;
free(g_cal_list);
- g_cal_list=my_cal_list;
+ g_cal_list=my_cal_list;
}