projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
988a3dd
)
No need to test end of numeric
author
Arun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Dec 2017 13:42:12 +0000 (19:12 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Dec 2017 13:42:12 +0000 (19:12 +0530)
nnn.c
patch
|
blob
|
history
diff --git
a/nnn.c
b/nnn.c
index 5f667129bd1663c81819c9a1f69b693072ec4eb3..6545a7b36e7d5f65ec39913e9c578b134da95c35 100644
(file)
--- a/
nnn.c
+++ b/
nnn.c
@@
-669,16
+669,14
@@
xstricmp(char *s1, char *s2)
else if (*c1 == '\0' && *c2 == '\0') {
static long long num1, num2;
- num1 = strtoll(s1,
&c1
, 10);
- num2 = strtoll(s2,
&c2
, 10);
+ num1 = strtoll(s1,
NULL
, 10);
+ num2 = strtoll(s2,
NULL
, 10);
if (num1 != num2) {
if (num1 > num2)
return 1;
else
return -1;
}
-
- *c1 = 0, *c2 = 0;
} else if (*c1 == '\0' && *c2 != '\0')
return -1;
else if (*c1 != '\0' && *c2 == '\0')