]> jfr.im git - irc/evilnet/x3.git/commitdiff
Added a few variable initialisations that coincidentally fix a crash bug
authorMatthew Beeching <redacted>
Wed, 22 Jan 2014 01:42:05 +0000 (01:42 +0000)
committerMatthew Beeching <redacted>
Wed, 22 Jan 2014 01:42:05 +0000 (01:42 +0000)
src/nickserv.c

index 8a73ede5cf63257518ca0a34d60eed8a1d306ce3..c1fd43a015ebd0cc46936d41c708de9eb825e10c 100644 (file)
@@ -5646,14 +5646,14 @@ sasl_packet(struct SASLSession *session)
     }
     else /* We only have PLAIN at the moment so next message must be credentials */
     {
-        char *raw;
-        size_t rawlen;
+        char *raw = NULL;
+        size_t rawlen = 0;
         char *authzid = NULL;
         char *authcid = NULL;
         char *passwd = NULL;
-        char *r;
+        char *r = NULL;
         unsigned int i = 0, c = 0;
-        struct handle_info *hi;
+        struct handle_info *hi = NULL;
         static char buffer[256];
 
         base64_decode_alloc(session->buf, session->buflen, &raw, &rawlen);