GNOME Bugzilla – Bug 560435
GNOME Goal: Remove deprecated GLib symbols
Last modified: 2008-12-04 02:17:36 UTC
See http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/Glib Here are the files+lines using deprecated GLib symbols in this module: gnome-nettool/src/callbacks.c:236: if (g_strcasecmp (text, "") != 0) gnome-nettool/src/callbacks.c:246: if (g_strcasecmp (text, "") != 0)
Created attachment 123232 [details] [review] patch for this bug
Germán, this patch has a bug: g_strcasecmp does case-insensitive comparisons, and Maxim replaced them with strlen, which is case sensitive. The right thing to do, if the strings to compare are coded in ASCII, is to call g_ascii_strcasecmp.
Ooops, sorry, I'm mistaken, I read strlen and thought strcmp. The patch is right, even if strlen (text) > 0 could be written *text != '\0'
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.