AUXSORT already checks if the first parameter is zero.
Additionally, the macro expands into more than one statement, so
putting inside an unbracketed if is misleading and generates a
warning on the latest gcc.
Fortunately, both statements checked if the first parameter was zero,
so no actual bug resulted.
if (result == 0)
{
result = strcmp(aptr, bptr);
- if (result == 0)
- {
- result = perform_auxsort(result, a, b);
- }
+ result = perform_auxsort(result, a, b);
}
return SORTCODE(result);