mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Trim trailing whitespaces.
This commit is contained in:
parent
eda6529ced
commit
8f2d4860bc
@ -130,13 +130,13 @@ check_whether_file_exists(unsigned char *name)
|
|||||||
for (i = 0; i < sizeof(chars) - 1; i++) {
|
for (i = 0; i < sizeof(chars) - 1; i++) {
|
||||||
unsigned char *pos = memchr(name, chars[i], namelen);
|
unsigned char *pos = memchr(name, chars[i], namelen);
|
||||||
int exists;
|
int exists;
|
||||||
|
|
||||||
if (!pos) continue;
|
if (!pos) continue;
|
||||||
|
|
||||||
*pos = 0;
|
*pos = 0;
|
||||||
exists = file_exists(name);
|
exists = file_exists(name);
|
||||||
*pos = chars[i];
|
*pos = chars[i];
|
||||||
|
|
||||||
if (exists) {
|
if (exists) {
|
||||||
return pos - name;
|
return pos - name;
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ check_uri_file(unsigned char *name)
|
|||||||
|
|
||||||
for (i = 0; i < sizeof(chars) - 1; i++) {
|
for (i = 0; i < sizeof(chars) - 1; i++) {
|
||||||
unsigned char *pos = memchr(name, chars[i], namelen);
|
unsigned char *pos = memchr(name, chars[i], namelen);
|
||||||
|
|
||||||
if (!pos) continue;
|
if (!pos) continue;
|
||||||
|
|
||||||
return pos - name;
|
return pos - name;
|
||||||
|
Loading…
Reference in New Issue
Block a user