1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Handle NULL saved_status

This commit is contained in:
James Booth 2016-07-27 23:35:49 +01:00
parent a1f48f8457
commit 3396e75d23

View File

@ -397,7 +397,11 @@ session_check_autoaway(void)
if (saved_status) {
free(saved_status);
}
if (curr_status) {
saved_status = strdup(curr_status);
} else {
saved_status = NULL;
}
// send away presence with last activity
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);