[gnome-keyring] egg: Fix bad precondation checking timegm() result



commit 66a360bfeb5e2a5fb12323b03b9c7e3844a8e159
Author: Stef Walter <stefw gnome org>
Date:   Mon Oct 19 11:34:44 2015 +0200

    egg: Fix bad precondation checking timegm() result
    
    https://bugs.freedesktop.org/show_bug.cgi?id=92383

 egg/egg-asn1x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/egg/egg-asn1x.c b/egg/egg-asn1x.c
index 197ab37..b2bc761 100644
--- a/egg/egg-asn1x.c
+++ b/egg/egg-asn1x.c
@@ -2219,7 +2219,7 @@ anode_read_time (GNode *node,
        /* Convert to seconds since epoch */
        } else {
                *value = timegm (when);
-               g_return_val_if_fail (*time >= 0, FALSE);
+               g_return_val_if_fail (*value >= 0, FALSE);
                *value += offset;
        }
 


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