diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-27 23:27:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-28 00:55:24 +0200 |
commit | 08ace05beb1d09b6ebc5e9cafc2b972b39fa2437 (patch) | |
tree | be7290b127df8b2bf4baed5b20659d79527bbc13 /src/shared/util.c | |
parent | 8f14c8327b1c2b578bbf1235723a77931c3d0223 (diff) |
logs-show: various cleanups
Among other cleanups this introduces a threshold for the size of binary
blobs we serialize as integer arrays in the JSON output. THis can be
disabled via --all.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index ed9b56e18e..d2ca3fc783 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1688,7 +1688,8 @@ char *xescape(const char *s, const char *bad) { * chars, in \xFF style escaping. May be reversed with * cunescape. */ - if (!(r = new(char, strlen(s)*4+1))) + r = new(char, strlen(s) * 4 + 1); + if (!r) return NULL; for (f = s, t = r; *f; f++) { |