This bug was reintroduced in 0be7b51e, so maybe better fix is to revert that small change, so it does adhere to your coding standards:
@@ -430,7 +473,7 @@ display_insert(GCDisplay *display, int cursor_start, int cursor_end, const char use = FALSE;
/* Ignore thousands separators */ - if (strncmp(c, v->tsep, strlen(v->tsep)) == 0) + if (v->tsep[0] != '\0' && strncmp(c, v->tsep, strlen(v->tsep)) == 0) use = FALSE;
/* Copy existing text */
This bug was reintroduced in 0be7b51e, so maybe better fix is to revert that small change, so it does adhere to your coding standards:
@@ -430,7 +473,7 @@ display_ insert( GCDisplay *display, int cursor_start, int cursor_end, const char
use = FALSE;
/* Ignore thousands separators */
use = FALSE;
- if (strncmp(c, v->tsep, strlen(v->tsep)) == 0)
+ if (v->tsep[0] != '\0' && strncmp(c, v->tsep, strlen(v->tsep)) == 0)
/* Copy existing text */