[gaim-migrate @ 15790]

Tue, 07 Mar 2006 01:50:00 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Tue, 07 Mar 2006 01:50:00 +0000
changeset 13416
43b41b622e01
parent 13415
c8090b1fe17a
child 13417
a3bb02925bda

[gaim-migrate @ 15790]
In the context of the if...else if...else statement below, it looks like the idea is to check the pointers, not the data they're pointing two.
Resolves CID 70

plugins/gevolution/new_person_dialog.c file | annotate | diff | comparison | revisions
--- a/plugins/gevolution/new_person_dialog.c	Tue Mar 07 01:37:56 2006 +0000
+++ b/plugins/gevolution/new_person_dialog.c	Tue Mar 07 01:50:00 2006 +0000
@@ -104,7 +104,7 @@
 	lastname   = gtk_entry_get_text(GTK_ENTRY(dialog->lastname));
 	email      = gtk_entry_get_text(GTK_ENTRY(dialog->email));
 
-	if (*firstname || *lastname)
+	if (firstname != NULL || lastname != NULL)
 	{
 		if (dialog->contact == NULL)
 		{

mercurial