updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / kf / autoaway-null-pointer-check.patch
blobf47e5fdab2764645e141410b2b126a31aadc60ee
1 --- src/autoaway.c_ 2011-03-23 09:55:01.176931000 +0300
2 +++ src/autoaway.c 2011-03-23 09:55:22.663597668 +0300
3 @@ -97,7 +97,7 @@
4 idle = kf_autoaway_get_idle ();
6 /* v- we have to be connected v- We are "Online" or "Free for chat" */
7 - if (kf_jabber_get_connected () && *enable_aa && *aa_status <= 1) {
8 + if (kf_jabber_get_connected () && enable_aa && *enable_aa && aa_status && *aa_status <= 1) {
9 if (idle > *aa_delay * 60 && idle < *axa_delay * 60 && state == KF_AUTOAWAY_NONE) {
10 /* Auto away */
11 kf_autoaway_set_presence (KF_AUTOAWAY_AWAY);