# HG changeset patch
# User Christian Hammond <chipx86@chipx86.com>
# Date 1054774407 0
# Node ID 9587ee01dc5de80adfd373be956eded118d38537
# Parent  48aac80b5d839999c08d0b23f5691ab36ba7a8fc
[gaim-migrate @ 6180]
strcmp NULL check from Phroggie. Thanks!

committer: Tailor Script <tailor@pidgin.im>

diff -r 48aac80b5d83 -r 9587ee01dc5d src/idle.c
--- a/src/idle.c	Thu Jun 05 00:36:42 2003 +0000
+++ b/src/idle.c	Thu Jun 05 00:53:27 2003 +0000
@@ -68,7 +68,7 @@
 	report_idle = gaim_prefs_get_string("/gaim/gtk/idle/reporting_method");
 
 #ifdef USE_SCREENSAVER
-	if (!strcmp(report_idle, "system")) {
+	if (report_idle != NULL && !strcmp(report_idle, "system")) {
 #ifndef _WIN32
 		int event_base, error_base;
 		if (XScreenSaverQueryExtension(GDK_DISPLAY(), &event_base, &error_base)) {
@@ -130,7 +130,7 @@
 	   usage for auto-away, but quit here so we don't report to the 
 	   server */
 
-	if (!strcmp(report_idle, "none"))
+	if (report_idle != NULL && !strcmp(report_idle, "none"))
 		return TRUE;
 
 	if (idle_time >= IDLEMARK && !gc->is_idle) {