[evolution-data-server] Address few issues found by Coverity Scan
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Address few issues found by Coverity Scan
- Date: Wed, 24 Feb 2016 08:50:13 +0000 (UTC)
commit e34572277e015f66ebe8a824680345f8226145bd
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 24 09:50:00 2016 +0100
Address few issues found by Coverity Scan
calendar/libecal/e-cal-recur.c | 4 ++--
camel/camel-db.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/calendar/libecal/e-cal-recur.c b/calendar/libecal/e-cal-recur.c
index e2c895b..66b8170 100644
--- a/calendar/libecal/e-cal-recur.c
+++ b/calendar/libecal/e-cal-recur.c
@@ -238,8 +238,8 @@ apply_duration (struct icaltimetype *tt,
if (icaldurationtype_is_null_duration (*duration))
return;
- days = duration->days + 7 * duration->weeks;
- seconds = (duration->hours * 60 * 60) + (duration->minutes * 60) + duration->seconds;
+ days = (gint64) duration->days + 7 * ((gint64) duration->weeks);
+ seconds = ((gint64) duration->hours * 60 * 60) + ((gint64) duration->minutes * 60) +
duration->seconds;
days += seconds / (24 * 60 * 60);
seconds = seconds % (24 * 60 * 60);
diff --git a/camel/camel-db.c b/camel/camel-db.c
index 4f1837a..bcdc0f6 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -2302,7 +2302,7 @@ cdb_delete_ids (CamelDB *cdb,
GError **error)
{
gchar *tmp;
- gint ret;
+ gint ret = 0;
gchar *tab;
gboolean first = TRUE;
GString *str = g_string_new ("DELETE FROM ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]