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:
parent
a1f48f8457
commit
3396e75d23
@ -397,7 +397,11 @@ session_check_autoaway(void)
|
||||
if (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
|
||||
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);
|
||||
|
Loading…
Reference in New Issue
Block a user