mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 06:46:21 +00:00
Handle NULL saved_status
This commit is contained in:
@@ -397,7 +397,11 @@ session_check_autoaway(void)
|
|||||||
if (saved_status) {
|
if (saved_status) {
|
||||||
free(saved_status);
|
free(saved_status);
|
||||||
}
|
}
|
||||||
saved_status = strdup(curr_status);
|
if (curr_status) {
|
||||||
|
saved_status = strdup(curr_status);
|
||||||
|
} else {
|
||||||
|
saved_status = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// send away presence with last activity
|
// send away presence with last activity
|
||||||
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);
|
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user