/pidgin/main: 98f3f47f8382: g_strfreev checks for NULL itself, s...

Mark Doliner mark at kingant.net
Tue Jan 28 10:38:11 EST 2014


Changeset: 98f3f47f8382a9b2e0e3d52547727aa7b38da9b4
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2014-01-12 18:02 -0800
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/98f3f47f8382

Description:

g_strfreev checks for NULL itself, so we don't need to do it.

diffstat:

 pidgin/gtknotify.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff --git a/pidgin/gtknotify.c b/pidgin/gtknotify.c
--- a/pidgin/gtknotify.c
+++ b/pidgin/gtknotify.c
@@ -1474,8 +1474,7 @@ pidgin_notify_uri(const char *uri)
 	} else
 		uri_command(argv, FALSE);
 
-	if (usercmd_argv != NULL)
-		g_strfreev(usercmd_argv);
+	g_strfreev(usercmd_argv);
 	g_free(uri_escaped);
 	g_free(uri_custom);
 	g_slist_free(argv);



More information about the Commits mailing list