diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 02:24:18 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 03:33:04 +0800 |
commit | 420a4ccb20825d618b06c6be742c2c47cc15ca71 (patch) | |
tree | c771000c0c5a5572436a46dbd7250ea611c8e8b3 | |
parent | c2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc (diff) | |
download | gsoc2013-evolution-420a4ccb20825d618b06c6be742c2c47cc15ca71.tar.gz gsoc2013-evolution-420a4ccb20825d618b06c6be742c2c47cc15ca71.tar.zst gsoc2013-evolution-420a4ccb20825d618b06c6be742c2c47cc15ca71.zip |
Fix a bug in e_alert_newv() that was causing a crash
https://bugzilla.gnome.org/show_bug.cgi?id=602963
-rw-r--r-- | e-util/e-alert.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c index cc7488744e..26af317ba4 100644 --- a/e-util/e-alert.c +++ b/e-util/e-alert.c @@ -424,18 +424,17 @@ EAlert * e_alert_newv(const gchar *tag, const gchar *arg0, va_list ap) { gchar *tmp; - GPtrArray *args; - EAlert *err = g_slice_new0 (EAlert); - err->tag = g_strdup (tag); - err->args = g_ptr_array_new_with_free_func (g_free); + EAlert *alert = g_slice_new0 (EAlert); + alert->tag = g_strdup (tag); + alert->args = g_ptr_array_new_with_free_func (g_free); tmp = (gchar *)arg0; while (tmp) { - g_ptr_array_add(args, g_strdup (tmp)); + g_ptr_array_add(alert->args, g_strdup (tmp)); tmp = va_arg(ap, gchar *); } - return err; + return alert; } /** |