changeset 13436:a04ebe46930a

[gaim-migrate @ 15811] Dereferencing a possibly NULL pointer is bad. Resolves CID 25 committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Mar 2006 07:17:39 +0000
parents 5f6d2b22c18e
children 4bfb720a8fc2
files src/protocols/novell/novell.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/novell/novell.c	Tue Mar 07 05:54:36 2006 +0000
+++ b/src/protocols/novell/novell.c	Tue Mar 07 07:17:39 2006 +0000
@@ -339,7 +339,7 @@
 			folder_name = nm_folder_get_name(folder);
 		}
 
-		if (*folder_name == '\0')
+		if (folder_name == NULL || *folder_name == '\0')
 			folder_name = NM_ROOT_FOLDER_NAME;
 
 		/* Re-add the buddy now that we got the okay from the server */