1 parent
e2ffb5360a
commit
2ee20ca604
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1474,7 +1474,7 @@ static jv f_strptime(jq_state *jq, jv a, jv b) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
const char *end = strptime(input, fmt, &tm);
|
const char *end = strptime(input, fmt, &tm);
|
||||||
if (end == NULL || (*end != '\0' && !isspace(*end))) {
|
if (end == NULL || (*end != '\0' && !isspace((unsigned char)*end))) {
|
||||||
return ret_error2(a, b, jv_string_fmt("date \"%s\" does not match format \"%s\"", input, fmt));
|
return ret_error2(a, b, jv_string_fmt("date \"%s\" does not match format \"%s\"", input, fmt));
|
||||||
}
|
}
|
||||||
jv_free(b);
|
jv_free(b);
|
||||||
|
|||||||
+1
-1
@@ -126,7 +126,7 @@ static void die() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int isoptish(const char* text) {
|
static int isoptish(const char* text) {
|
||||||
return text[0] == '-' && (text[1] == '-' || isalpha(text[1]));
|
return text[0] == '-' && (text[1] == '-' || isalpha((unsigned char)text[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int isoption(const char* text, char shortopt, const char* longopt, size_t *short_opts) {
|
static int isoption(const char* text, char shortopt, const char* longopt, size_t *short_opts) {
|
||||||
|
|||||||
Reference in new issue
Block a user