diff options
| author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 22:43:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-01 22:43:28 -0500 |
| commit | f7dda6c625c7b12a1d4635a679e442250a0f69f0 (patch) | |
| tree | 9f585f8d382e8a388b06711caf418fcfe5ee6abe /src/basic/hexdecoct.c | |
| parent | ef2f4f911b6a6499db4468570ed868add45b3069 (diff) | |
| parent | 9ff233dc1fa2f47fc4499a12a8ee0640aba30657 (diff) | |
Merge pull request #5203 from poettering/dotdot
trivial unification of checking for "." and ".." when iterating through directories...
Diffstat (limited to 'src/basic/hexdecoct.c')
| -rw-r--r-- | src/basic/hexdecoct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/hexdecoct.c b/src/basic/hexdecoct.c index 6843aedd0a..2d6e377f0a 100644 --- a/src/basic/hexdecoct.c +++ b/src/basic/hexdecoct.c @@ -72,10 +72,10 @@ int unhexchar(char c) { } char *hexmem(const void *p, size_t l) { - char *r, *z; const uint8_t *x; + char *r, *z; - z = r = malloc(l * 2 + 1); + z = r = new(char, l * 2 + 1); if (!r) return NULL; |
