From 614b189f7a13b8099b2198f6ca9ae5917e5c79f1 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 10 Aug 2021 14:52:43 -0400 Subject: [PATCH] lua rockaux.c filetol fix invalid conditional Change-Id: Id31d3d8b571540394373a61ed213380c95a0eee2 --- apps/plugins/lua/rockaux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c index 929dea798b..c4af2b3e96 100644 --- a/apps/plugins/lua/rockaux.c +++ b/apps/plugins/lua/rockaux.c @@ -257,7 +257,7 @@ int filetol(int fd, long *num) { case '-': { - if (retn) /* 0 preceeds, this negative sign must be in error */ + if (retn > 0) /* 0 preceeds, this negative sign must be in error */ goto get_digits; neg = true; continue;