Browse Source

make more use of equals()

wip/unchecked-remove
Oswald Buddenhagen 7 years ago
parent
commit
af1acdac97
  1. 2
      src/util.c

2
src/util.c

@ -491,7 +491,7 @@ map_name( const char *arg, char **result, int reserve, const char *in, const cha
} }
assert( out ); assert( out );
outl = strlen( out ); outl = strlen( out );
if (inl == outl && !memcmp( in, out, inl )) if (equals( in, inl, out, outl ))
goto copy; goto copy;
for (num = 0, i = 0; i < l; ) { for (num = 0, i = 0; i < l; ) {
for (ll = 0; ll < inl; ll++) for (ll = 0; ll < inl; ll++)

Loading…
Cancel
Save