Mercurial > pidgin
comparison src/gaimrc.c @ 6223:0eead37020bb
[gaim-migrate @ 6716]
fix a crash in prefs and updated .po file
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 18 Jul 2003 20:11:01 +0000 |
parents | dc42b27101c0 |
children | 3613007cbb6e |
comparison
equal
deleted
inserted
replaced
6222:47cc18a3cff2 | 6223:0eead37020bb |
---|---|
356 else if (!strcmp(p->option, "auto")) { | 356 else if (!strcmp(p->option, "auto")) { |
357 struct away_message *default_away; | 357 struct away_message *default_away; |
358 gaim_prefs_set_int("/core/away/mins_before_away", | 358 gaim_prefs_set_int("/core/away/mins_before_away", |
359 atoi(p->value[0])); | 359 atoi(p->value[0])); |
360 default_away = g_slist_nth_data(away_messages, atoi(p->value[1])); | 360 default_away = g_slist_nth_data(away_messages, atoi(p->value[1])); |
361 gaim_prefs_set_string("/core/away/default_message", | 361 if (default_away) |
362 default_away->name); | 362 gaim_prefs_set_string("/core/away/default_message", |
363 default_away->name); | |
363 } | 364 } |
364 } | 365 } |
365 if (!away_messages) { | 366 if (!away_messages) { |
366 a = g_new0(struct away_message, 1); | 367 a = g_new0(struct away_message, 1); |
367 g_snprintf(a->name, sizeof(a->name), _("boring default")); | 368 g_snprintf(a->name, sizeof(a->name), _("boring default")); |