]> granicus.if.org Git - php/commitdiff
fix compiler warning?: implement default mentioned by manual
authorMarcus Boerger <helly@php.net>
Thu, 24 Oct 2002 19:17:08 +0000 (19:17 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 24 Oct 2002 19:17:08 +0000 (19:17 +0000)
ext/standard/file.c

index 1e10984cca93ae8fae540c759e0b07027d0c1ed7..44d604eb34ca6e932dc9cedfa07cf3830a19d5ff 100644 (file)
@@ -1310,7 +1310,7 @@ PHP_FUNCTION(stream_set_timeout)
 PHPAPI PHP_FUNCTION(fgets)
 {
        zval **arg1, **arg2;
-       int len;
+       int len = 1024;
        char *buf = NULL;
        int argc = ZEND_NUM_ARGS();
        size_t line_len = 0;