X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgisimple.c;h=34cc5819b3a56262c6f9cff578eb7e63c5c30642;hp=530c581614a5ec3138f57edea9ce7cebab084071;hb=80b8fdfab0b5828b0a3cbdf7093c710fbde0306e;hpb=da1e7a2c6aef56965785d2fb6d025834186cb378 diff --git a/cgisimple.c b/cgisimple.c index 530c5816..34cc5819 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.138 2016/04/04 10:55:47 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.139 2016/05/08 10:44:39 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -347,7 +347,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, const char *toggle_state; const char *tag_expires; time_t time_to_live; - char *client_tags = strdup_or_die(""); + char *client_tags; char buf[1000]; assert(csp); @@ -385,16 +385,13 @@ jb_err cgi_show_client_tags(struct client_state *csp, this_tag = csp->config->client_tags; if (this_tag->name == NULL) { - if (!err) err = string_append(&client_tags, "

No tags available.

\n"); + client_tags = strdup_or_die("

No tags available.

\n")); } else { - if (!err) - { - err = string_append(&client_tags, "\n" - "\n" - "\n"); - } + client_tags = strdup_or_die("
Tag nameCurrent stateChange stateDescription
\n" + "\n" + "\n"); while ((this_tag != NULL) && (this_tag->name != NULL)) { int tag_state;
Tag nameCurrent stateChange stateDescription