diff options
author | Shawn Landden <shawn@churchofgit.com> | 2013-11-30 16:09:26 -0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-30 22:20:20 -0500 |
commit | e93c33d4aadb41427f215d43545e7fadc6bcec6f (patch) | |
tree | 6964e793e232cce6d03349d73a83fe23da45e252 /src/shared/util.c | |
parent | f74294c1dabb41faaaa0e03777f0dd33b979eed6 (diff) |
systemctl: add "systemctl cat"
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 206fc803d0..305a6c2fb6 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5791,6 +5791,8 @@ void* greedy_realloc(void **p, size_t *allocated, size_t need) { size_t a; void *q; + assert(allocated); + if (*allocated >= need) return *p; |