helpnode->log[i] = NULL;
}
free(helpnode->log);
- }
+ } else
+ logbuff[0] = '\0';
printf_long_mysql_query(1024 + len, "UPDATE `helpserv_requests` SET `status`='2', `log` = CONCAT(`log`, '%s') WHERE `id` = %d", escape_string(logbuff), helpnode->suppid);
if(do_reply) {
reply(client, helpnode->user, "NH_DELETED", helpnode->suppid);