working case-insense
This commit is contained in:
@@ -105,10 +105,10 @@ static int mad_print(json_t **xroot, char *mad, bool verbose, char *out) {
|
|||||||
elm = data;
|
elm = data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
char low[strlen(fmad)];
|
char lmad[strlen(mad)];
|
||||||
strcpy(low, fmad);
|
strcpy(lmad, mad);
|
||||||
str_lower(low);
|
str_lower(lmad);
|
||||||
if (strcmp(mad, low) == 0) {
|
if (strcmp(lmad, fmad) == 0) {
|
||||||
elm = data;
|
elm = data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user