libpurple/protocols/gg/libgaduw.c

changeset 36281
017310ea69c0
parent 36124
3dcb9b9b7c11
child 36293
6af7f9a6859f
--- a/libpurple/protocols/gg/libgaduw.c	Thu Nov 13 03:58:07 2014 -0500
+++ b/libpurple/protocols/gg/libgaduw.c	Sun Nov 23 23:20:53 2014 -0500
@@ -87,6 +87,14 @@
 
 	msg = g_strdup_vprintf(format, args);
 
+	if (!msg) {
+		purple_debug_fatal("gg",
+			"failed to vprintf the following message: %s",
+			format ? format : "(null)\n");
+
+		return;
+	}
+
 	if (level & GG_DEBUG_ERROR)
 		purple_level = PURPLE_DEBUG_ERROR;
 	else if (level & GG_DEBUG_WARNING)

mercurial