Comment 16 for bug 521038

Revision history for this message
Ondřej Surý (ondrej) wrote :

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 */