Skip to content

Commit 48a2b7d

Browse files
committed
DEBUG2: help diagnosing issues
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent acd1aae commit 48a2b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ value = calloc(len_value < 16 ? 16 : len_value, sizeof(char));
20862086
xwcstoutf(value, w_value, len_value);
20872087

20882088
/* Be mean and invalidate the previous getenv() result */
2089-
{ int offset = !strcmp("GIT_COMMITTER_EMAIL", name) || !strcmp("GIT_AUTHOR_EMAIL", name) ? 2 : (!strcmp("GIT_COMMITTER_DATE", name) || !strcmp("GIT_AUTHOR_DATE", name) ? 3 : 1); char *p = values[(value_counter + ARRAY_SIZE(values) - offset) % ARRAY_SIZE(values)]; if (p) xsnprintf(p, 16, "NONONONONONONO!"); }
2089+
{ int offset = !strcmp("GIT_COMMITTER_EMAIL", name) || !strcmp("GIT_AUTHOR_EMAIL", name) ? 2 : (!strcmp("GIT_COMMITTER_DATE", name) || !strcmp("GIT_AUTHOR_DATE", name) ? 3 : 1); char *p = values[(value_counter + ARRAY_SIZE(values) - offset) % ARRAY_SIZE(values)]; if (p) { if (0) error("invalidating '%s' because of '%s'", p, name); xsnprintf(p, 16, "NONONONONONONO!"); } }
20902090
/*
20912091
* We return `value` which is an allocated value and the caller is NOT
20922092
* expecting to have to free it, so we keep a round-robin array,

0 commit comments

Comments
 (0)