aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-05-28 21:19:36 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-05-28 21:19:36 +0300
commit193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2 (patch)
tree29f91f479da30d8ad768f6d38e5368a7d8fea587 /profile.c
parent94b64f95755e183578d74fafa3e6403a1f23545a (diff)
downloadegawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.tar.gz
egawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.tar.bz2
egawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.zip
Minor profiling fixes. More to come.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 435cad18..391136d2 100644
--- a/profile.c
+++ b/profile.c
@@ -1196,6 +1196,11 @@ pp_string(const char *in_str, size_t len, int delim)
if (delim != '/' && *str == delim) {
*obufout++ = '\\';
*obufout++ = delim;
+ } else if (*str == '\0') {
+ *obufout++ = '\\';
+ *obufout++ = '0';
+ *obufout++ = '0';
+ *obufout++ = '0';
} else if ((cp = strchr(escapes, *str)) != NULL) {
i = cp - escapes;
*obufout++ = '\\';