fix use of uninitialized memory in malloc failure handling code path

This commit is contained in:
Nedko Arnaudov 2012-11-19 04:47:07 +02:00
parent a42ac047af
commit 136d9d1d45
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ ladish_room_save_project(
if (ctx_ptr == NULL)
{
log_error("malloc() failed to allocate memory for room save context struct");
ctx_ptr->callback(ctx_ptr->context, false);
callback(context, false);
return;
}