mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Cosmetics.
This commit is contained in:
parent
850543f7d6
commit
7014380256
@ -400,7 +400,8 @@ static char *split_string(const char *src,
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Consolidate slashes in-place.
|
||||
* Consolidate slashes in-place by shifting parts of the string over repeated
|
||||
* slashes.
|
||||
*/
|
||||
static void consolidate_slashes(char *s)
|
||||
{
|
||||
@ -523,7 +524,7 @@ static void test_make_safe_uri(void)
|
||||
debugf("FAIL: `%s' unsafe, expecting `%s'\n", from, to); \
|
||||
else if (strcmp(tmp, to) != 0) \
|
||||
debugf("FAIL: `%s' -> `%s', expecting `%s'\n", from, tmp, to); \
|
||||
safefree(tmp); free(uri); } while(0)
|
||||
safefree(tmp); safefree(uri); } while(0)
|
||||
|
||||
SAFE("/", "/");
|
||||
SAFE("//", "/");
|
||||
|
Loading…
Reference in New Issue
Block a user