diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-12-30 00:18:39 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-30 16:23:13 +0100 |
commit | f146f5e159445c4fc7e89fe19ee2b8d72fc19ed7 (patch) | |
tree | 9c34b103774b7ebf66131d397f506dc5e74a3fed /src/core | |
parent | 3cf148f307e6450aa3411968f59a2563fe9cb154 (diff) |
core: Forgot to dereference pointer when checking for NULL
Actually we already checked for !rt before, now we'd like to examine
the return value of the memory allocation.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 6ae9a5eb71..7f93c0c3b1 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2282,7 +2282,7 @@ static int exec_runtime_allocate(ExecRuntime **rt) { return 0; *rt = new0(ExecRuntime, 1); - if (!rt) + if (!*rt) return -ENOMEM; (*rt)->n_ref = 1; |