From 49c3fd778da31ae74ce6b8566b6854ee4af68815 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 13 Jul 2004 15:58:18 +0000 Subject: [PATCH] r3583: Fixed an assertion with vital side-effects. --- ROX-Filer/src/mount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ROX-Filer/src/mount.c b/ROX-Filer/src/mount.c index 9a845d3c..fad0a385 100644 --- a/ROX-Filer/src/mount.c +++ b/ROX-Filer/src/mount.c @@ -214,8 +214,11 @@ static void clear_table(void) static time_t read_time(char *path) { struct stat info; + int err = 0; - g_return_val_if_fail(stat(path, &info) == 0, 0); + err = stat(path, &info); + + g_return_val_if_fail(err == 0, 0); return info.st_mtime; } -- 2.11.4.GIT