CamelSExp *sexp;
CamelSExpResult *r;
gint i;
- gchar *res;
+ gchar *res = NULL;
sexp = camel_sexp_new ();
g_datalist_clear (&data);
}
- if (summary_got == 0 && summary_len == 0) {
+ if (summary_got == 0) {
camel_operation_pop_message (cancellable);
g_free (new);
g_free (resp);
a1 = strtoul (sa1, NULL, 10);
a2 = strtoul (sa2, NULL, 10);
- return (a1 < a1) ? -1 : (a1 > a2) ? 1 : 0;
+ return (a1 < a2) ? -1 : (a1 > a2) ? 1 : 0;
}
/**
goto error;
}
+ fd = -1;
+
if (close (fdout) == -1) {
g_warning ("Cannot close temporary folder: %s", g_strerror (errno));
g_set_error (
goto error;
}
+ fdout = -1;
+
/* this should probably either use unlink/link/unlink, or recopy over
* the original mailbox, for various locking reasons/etc */
#ifdef G_OS_WIN32
stream = CAMEL_STREAM (store->mem);
while ((c = *p++)) {
- gchar *strval;
+ gchar *strval = NULL;
switch (c) {
case '%':
{
GSList *l;
- if (source_uid && source_uid) {
+ if (source_uid && *source_uid) {
/* this is much quicket than asking each client for an existence */
for (l = clients; l; l = g_slist_next (l)) {
EBookClient *client = l->data;