]> granicus.if.org Git - php/commitdiff
No need to duplicate the string here
authorMikko Koppanen <mkoppanen@php.net>
Sat, 26 Dec 2009 14:54:34 +0000 (14:54 +0000)
committerMikko Koppanen <mkoppanen@php.net>
Sat, 26 Dec 2009 14:54:34 +0000 (14:54 +0000)
ext/standard/streamsfuncs.c

index b5fa78baef43d158fb4412db355d433faff0988c..ab5fb87ae08015f0bb7ada86da6023f89e76e34f 100644 (file)
@@ -1691,7 +1691,7 @@ PHP_FUNCTION(stream_resolve_include_path)
                        efree(resolved_path);
                        RETURN_UNICODEL(ustr, ulen, 0);
                } else {
-                       RETURN_STRINGL(resolved_path, strlen(resolved_path), 1);
+                       RETURN_STRINGL(resolved_path, strlen(resolved_path), 0);
                }
        }
        RETURN_FALSE;