Mark a variable as const

Thu, 13 Feb 2020 20:09:23 -0600

author
Richard Laager <rlaager@pidgin.im>
date
Thu, 13 Feb 2020 20:09:23 -0600
changeset 40294
e2a342b61dde
parent 40293
c60c4f96749d
child 40295
90be91762626

Mark a variable as const

libpurple/protocols/jabber/message.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/message.c	Wed Feb 05 02:27:50 2020 -0600
+++ b/libpurple/protocols/jabber/message.c	Thu Feb 13 20:09:23 2020 -0600
@@ -107,7 +107,7 @@
 
 static void handle_chat(JabberMessage *jm)
 {
-	gchar *contact = jm->from;
+	const gchar *contact = jm->from;
 	JabberID *jid = jabber_id_new(contact);
 
 	PurpleConnection *gc;

mercurial