damn GCC -.- (this variable may _NOT_ be uninitialized!!!)
authorpk910 <philipp@zoelle1.de>
Thu, 20 Oct 2011 22:39:51 +0000 (00:39 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 20 Oct 2011 22:39:51 +0000 (00:39 +0200)
src/event_neonspam_join.c

index f2af828578d2c710bb406788fff12f16c61223bd..b2639035f75ca6e73593b4c07628eea4b17f73b0 100644 (file)
@@ -97,7 +97,7 @@ static void neonspam_event_join_punish(struct ClientSocket *client, struct ChanU
     if(uaccess >= settings->exceptlevel) return;
     //scanops / scanvoiced
     MYSQL_RES *res;
-    MYSQL_ROW row, defaults;
+    MYSQL_ROW row, defaults = NULL;
     loadChannelSettings(chanuser->chan);
     printf_mysql_query("SELECT `%s`, `channel_getop`, `channel_getvoice` FROM `channels` WHERE `channel_id` = '%d'", reaction, chanuser->chan->channel_id);
     res = mysql_use();