From 7c1752d8711280700d69b173d116d3e95b775722 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 2 Apr 2009 13:01:19 +0200 Subject: [PATCH] Fix a bad return value in ws_addarg() Fix a bad return value in ws_addarg() when updating a header value, leading the caller to believe an out of memory condition happened. --- src/webserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.c b/src/webserver.c index 5b3bb11f..31ccd86e 100644 --- a/src/webserver.c +++ b/src/webserver.c @@ -1516,7 +1516,7 @@ int ws_addarg(ARGLIST *root, char *key, char *fmt, ...) { free(newkey); free(pnew); WS_EXIT(); - return 0; + return TRUE; } current=current->next; }