Mercurial > pidgin
changeset 5755:9587ee01dc5d
[gaim-migrate @ 6180]
strcmp NULL check from Phroggie. Thanks!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 05 Jun 2003 00:53:27 +0000 |
parents | 48aac80b5d83 |
children | a7c4ad414d41 |
files | src/idle.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {