[geocode-glib] location: Fix precondition return for geocode_location_get_timestamp()



commit d99d13ad7195e700376055ef986c1012037fccac
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Feb 11 10:12:06 2016 +0000

    location: Fix precondition return for geocode_location_get_timestamp()
    
    -1 is not a valid guint64. Use 0 instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761853

 geocode-glib/geocode-location.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/geocode-location.c b/geocode-glib/geocode-location.c
index a8429b8..f770042 100644
--- a/geocode-glib/geocode-location.c
+++ b/geocode-glib/geocode-location.c
@@ -840,7 +840,7 @@ geocode_location_get_crs (GeocodeLocation *loc)
 guint64
 geocode_location_get_timestamp (GeocodeLocation *loc)
 {
-        g_return_val_if_fail (GEOCODE_IS_LOCATION (loc), -1);
+        g_return_val_if_fail (GEOCODE_IS_LOCATION (loc), 0);
 
         return loc->priv->timestamp;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]