From 1bab1de69866c38c3e9924d23f21a90623a0a6dc Mon Sep 17 00:00:00 2001
From: Denis Vlasenko <vda.linux@googlemail.com>
Date: Fri, 27 Jul 2007 15:30:39 +0000
Subject: fix for suffix optimization (which was in previous commit)

---
 libbb/xatonum_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'libbb')

diff --git a/libbb/xatonum_template.c b/libbb/xatonum_template.c
index bc8116056..205da53c8 100644
--- a/libbb/xatonum_template.c
+++ b/libbb/xatonum_template.c
@@ -45,7 +45,7 @@ unsigned type xstrtou(_range_sfx)(const char *numstr, int base,
 	 * Note that we also allow nul suffixes with associated multipliers,
 	 * to allow for scaling of the numstr by some default multiplier. */
 	if (suffixes) {
-		while (suffixes->suffix) {
+		while (suffixes->mult) {
 			if (strcmp(suffixes->suffix, e) == 0) {
 				if (XSTR_UTYPE_MAX / suffixes->mult < r)
 					goto range; /* overflow! */
-- 
cgit v1.2.3-55-g6feb