Commit 31de4eec authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  The original answer was evil, return NULL if the file name has no path!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89666 13f79535-47bb-0310-9956-ffa450edef68
parent 1a7beeee
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -599,8 +599,7 @@ AP_DECLARE(char *) ap_make_dirstr_parent(apr_pool_t *p, const char *s)
    int l;

    if (last_slash == NULL) {
	/* XXX: well this is really broken if this happens */
	return (apr_pstrdup(p, "/"));
	return NULL;
    }
    l = (last_slash - s) + 1;
    d = apr_palloc(p, l + 1);