Fix compilation error (reported by H. D. Oezbilen)
authorMikael Berthe <mikael@lilotux.net>
Tue, 15 Apr 2008 07:48:46 +0200
changeset 1475 ef09de538e8f
parent 1474 92d79aecd034
child 1476 77afd831f8f7
Fix compilation error (reported by H. D. Oezbilen)
mcabber/src/roster.c
--- a/mcabber/src/roster.c	Mon Apr 14 23:01:05 2008 +0200
+++ b/mcabber/src/roster.c	Tue Apr 15 07:48:46 2008 +0200
@@ -916,9 +916,9 @@
 
 const char *buddy_getjid(gpointer rosterdata)
 {
+  roster *roster_usr = rosterdata;
   if (!rosterdata)
     return NULL;
-  roster *roster_usr = rosterdata;
   return roster_usr->jid;
 }