diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-08-07 15:15:53 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-08-07 15:15:53 +0000 |
commit | ecfff915357389b5b7acad1adfaee48d26726b14 (patch) | |
tree | ab428ef346b9be8508f9ff59cac9fd9433fba09d | |
parent | 6f5d3dea287b205605b49ba7220bdf187a1ea713 (diff) | |
download | httpd-ecfff915357389b5b7acad1adfaee48d26726b14.tar.gz |
Thanks rbb, and the modproxy-dev autobuild report for pointing these out.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89983 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/generators/mod_autoindex.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index a8807a252a..80a3a66d7f 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1420,7 +1420,7 @@ static void output_directories(struct ent **ar, int n, int desc_width; char *name_scratch; char *pad_scratch; - char *breakrow; + char *breakrow = ""; apr_pool_create(&scratch, r->pool); if (name[0] == '\0') { @@ -1499,8 +1499,6 @@ static void output_directories(struct ent **ar, int n, if (!(autoindex_opts & SUPPRESS_RULES)) breakrow = apr_psprintf(r->pool, "<tr><th colspan=\"%d\">" "<hr /></th></tr>\n", cols); - else - breakrow = ""; ap_rvputs(r, "</th></tr>", breakrow, NULL); } else if (autoindex_opts & FANCY_INDEXING) { @@ -1907,7 +1905,7 @@ static int index_directory(request_rec *r, qstring += qstring[3] ? 4 : 3; } else if (qstring[0] == 'P' && qstring[1] == '=') { - char *eos = strchr(qstring, '&'); + const char *eos = ap_strchr_c(qstring, '&'); if (eos) { pstring = apr_pstrndup(r->pool, qstring + 2, eos - qstring - 2); |