Wireshark mailing list archives
Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c
From: Guy Harris <guy () alum mit edu>
Date: Thu, 27 Sep 2012 17:40:09 -0700
On Sep 27, 2012, at 1:47 PM, Gerald Combs <gerald () wireshark org> wrote:
We're using it in trunk-1.8 too, even though we shouldn't (the minimum version of GLib there is 2.14). I switched to strcmp in r45180.
...and, in all of the cases in 1.8 (the ones in main_menubar.c), either tok has already been checked to make sure it's non-null or is otherwise known to be non-null (g_strstrip() returns its argument, which has been checked to be non-null, and that's what's being assigned to tok), so there's no need to use g_strcmp0() there (so we could use strcmp() in the trunk as well). ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Guy Harris (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Jakub Zawadzki (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Guy Harris (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Jakub Zawadzki (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Gerald Combs (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Guy Harris (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Guy Harris (Sep 27)
- Re: [Wireshark-commits] rev 45175: /trunk/epan/ /trunk/epan/: prefs.c Jakub Zawadzki (Sep 27)