Prevent format expansion.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 12 Apr 2009 15:27:48 +0000 (17:27 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 12 Apr 2009 15:27:48 +0000 (17:27 +0200)
python/irc.c

index 346af06d55c28aa40020f9a4152472ed26151774..ade2a92a9e145b5fe5c2c134171e538ab8c03cb1 100644 (file)
@@ -30,7 +30,7 @@ static void g_error_set_python(GError **error)
 
     PyErr_Fetch(&exception_type, &exception_value, &exception_tb);
 
-    g_set_error(error, g_quark_from_static_string("libirc-python-error"), 1, PyString_AsString(exception_value));
+    g_set_error_literal(error, g_quark_from_static_string("libirc-python-error"), 1, PyString_AsString(exception_value));
 }
 
 static const struct irc_client_callbacks py_client_callbacks;