fix !CONFIG_FLOAT_DURATION build
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 26 Aug 2018 14:32:16 +0000 (16:32 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 26 Aug 2018 14:32:16 +0000 (16:32 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/duration.c

index 2f272771f3996862ff1d6b0c93434e137df1bc77..5acd0dba30a146d6551d4032eb1bf7e0c2213277 100644 (file)
@@ -73,6 +73,6 @@ void FAST_FUNC sleep_for_duration(duration_t duration)
 #else
 duration_t FAST_FUNC parse_duration_str(char *str)
 {
-       return xatou_range_sfx(*argv, 0, UINT_MAX, duration_suffixes);
+       return xatou_range_sfx(str, 0, UINT_MAX, duration_suffixes);
 }
 #endif