projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0602d94
)
Check if a GError is NULL before copying it
author
Alberto Garcia
<agarcia@igalia.com>
Mon, 12 Nov 2007 17:03:53 +0000
(17:03 +0000)
committer
Alberto Garcia
<agarcia@igalia.com>
Mon, 12 Nov 2007 17:03:53 +0000
(17:03 +0000)
pmo-trunk-r3715
src/modest-mail-operation.c
patch
|
blob
|
history
diff --git
a/src/modest-mail-operation.c
b/src/modest-mail-operation.c
index
2e480d6
..
3a1384f
100644
(file)
--- a/
src/modest-mail-operation.c
+++ b/
src/modest-mail-operation.c
@@
-871,7
+871,7
@@
modest_mail_operation_save_to_drafts_add_msg_cb(TnyFolder *self,
g_error_free(priv->error);
}
g_error_free(priv->error);
}
- priv->error = g_error_copy(err);
+ priv->error = (err == NULL) ? NULL : g_error_copy(err);
if ((!priv->error) && (info->draft_msg != NULL)) {
TnyHeader *header = tny_msg_get_header (info->draft_msg);
if ((!priv->error) && (info->draft_msg != NULL)) {
TnyHeader *header = tny_msg_get_header (info->draft_msg);