git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug: include variable content as expansion interim item
[exim.git]
/
src
/
src
/
expand.c
diff --git
a/src/src/expand.c
b/src/src/expand.c
index 2949579c5ac3192bcd4a60ffe6100dcb2c2edbc1..10f009ce2a928b7e5fe7ed2c2bd34381963cf5cd 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-4733,6
+4733,7
@@
while (*s)
reset in the middle of the buffer will make it inaccessible. */
len = Ustrlen(value);
reset in the middle of the buffer will make it inaccessible. */
len = Ustrlen(value);
+ DEBUG(D_expand) debug_expansion_interim(US"value", value, len, !!(flags & ESI_SKIPPING));
if (!yield && newsize != 0)
{
yield = g;
if (!yield && newsize != 0)
{
yield = g;
@@
-4751,7
+4752,10
@@
while (*s)
int n;
s = read_cnumber(&n, s);
if (n >= 0 && n <= expand_nmax)
int n;
s = read_cnumber(&n, s);
if (n >= 0 && n <= expand_nmax)
+ {
+ DEBUG(D_expand) debug_expansion_interim(US"value", expand_nstring[n], expand_nlength[n], !!(flags & ESI_SKIPPING));
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
+ }
continue;
}
continue;
}
@@
-4776,7
+4780,10
@@
while (*s)
goto EXPAND_FAILED;
}
if (n >= 0 && n <= expand_nmax)
goto EXPAND_FAILED;
}
if (n >= 0 && n <= expand_nmax)
+ {
+ DEBUG(D_expand) debug_expansion_interim(US"value", expand_nstring[n], expand_nlength[n], !!(flags & ESI_SKIPPING));
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
+ }
continue;
}
continue;
}