mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
NOTIFYLIST_REC usage crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3122 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
14a6263690
commit
2b00fd58b7
@ -134,8 +134,10 @@ static void perl_notifylist_fill_hash(HV *hv, NOTIFYLIST_REC *notify)
|
||||
hv_store(hv, "idle_check_time", 15, newSViv(notify->idle_check_time), 0);
|
||||
|
||||
av = newAV();
|
||||
for (tmp = notify->ircnets; *tmp != NULL; tmp++) {
|
||||
av_push(av, new_pv(*tmp));
|
||||
if (notify->ircnets != NULL) {
|
||||
for (tmp = notify->ircnets; *tmp != NULL; tmp++) {
|
||||
av_push(av, new_pv(*tmp));
|
||||
}
|
||||
}
|
||||
hv_store(hv, "ircnets", 7, newRV_noinc((SV*)av), 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user