From 40ca5c4768eb695b74d89dfbfcf4eb538080824d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 9 Jan 2014 14:30:43 -0500 Subject: [PATCH] debugfs: fix typo in commit 5a1d25a7b The typo causes a compiler warning, but it's otherwise harmless. Signed-off-by: "Theodore Ts'o" --- debugfs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugfs/util.c b/debugfs/util.c index cf46cc3..9ddfe0b 100644 --- a/debugfs/util.c +++ b/debugfs/util.c @@ -231,8 +231,8 @@ time_t string_to_time(const char *arg) } memset(&ts, 0, sizeof(ts)); #ifdef HAVE_STRPTIME - ret = strptime(arg, "%Y%m%d%H%M%S", &ts); - if (ret == NULL) + tmp = strptime(arg, "%Y%m%d%H%M%S", &ts); + if (tmp == NULL) goto fallback; #else sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon, -- 1.8.3.1