im.pidgin.pidgin: 8ac2b757981a1a407542a5c9aa63564fa726dcb0

rlaager at pidgin.im rlaager at pidgin.im
Sun Jan 13 23:23:15 EST 2008


-----------------------------------------------------------------
Revision: 8ac2b757981a1a407542a5c9aa63564fa726dcb0
Ancestor: 485edaeb03836f8ddebeae8f6c49e97c26c60acf
Author: rlaager at pidgin.im
Date: 2008-01-14T03:40:20
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/novell/nmfield.c

ChangeLog: 

Remove a useless NULL check before a g_free().

-------------- next part --------------
============================================================
--- libpurple/protocols/novell/nmfield.c	0c354640624834ad142adc945f6dc0153ae1f52c
+++ libpurple/protocols/novell/nmfield.c	9375704c9062310cfd75edc75ead54429f07b522
@@ -164,9 +164,7 @@ _free_field_value(NMField * field)
 		case NMFIELD_TYPE_BINARY:
 		case NMFIELD_TYPE_UTF8:
 		case NMFIELD_TYPE_DN:
-			if (field->ptr_value != NULL) {
-				g_free(field->ptr_value);
-			}
+			g_free(field->ptr_value);
 			break;
 
 		case NMFIELD_TYPE_ARRAY:


More information about the Commits mailing list