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.
This commit is contained in:
Stefan Beller 2013-12-30 00:18:39 +01:00 committed by Kay Sievers
parent 3cf148f307
commit f146f5e159
1 changed files with 1 additions and 1 deletions

View File

@ -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;