After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352289 - Unitialized GError in camel_imap_message_cache_new
Unitialized GError in camel_imap_message_cache_new
Status: RESOLVED DUPLICATE of bug 349847
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.8.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-08-21 18:52 UTC by Dave Malcolm
Modified: 2006-08-21 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dave Malcolm 2006-08-21 18:52:29 UTC
camel_imap_message_cache_new has this code:

    GError *error;

    dir = g_dir_open (path, 0, &error);

This leads to:
(evolution-2.8:3091): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.

and a segfault shortly after.

Suggest that the line be rewritten to 
    GError *error = NULL;

This is with:
  evolution-data-server-1.7.4-3
  evolution-2.7.4-3
on Fedora pre-6 development
Comment 1 Dave Malcolm 2006-08-21 19:05:26 UTC

*** This bug has been marked as a duplicate of 349847 ***