From b9f646db61ccf9cc0d08aa81107d484b7dbdd3b3 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Sat, 15 Aug 2009 20:06:15 +0200 Subject: [PATCH] FIX: resourcetracker, NULL dereference in finding parents --- src/nobug_resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nobug_resources.c b/src/nobug_resources.c index 5134550..cb8a3ed 100644 --- a/src/nobug_resources.c +++ b/src/nobug_resources.c @@ -642,7 +642,7 @@ nobug_resource_leave (struct nobug_resource_user* user) { //dlalgo VERBATIM {NULL, NULL}, //dlalgo ... NULL, //dlalgo VERBATIM - parent->current, //dlalgo ... + parent?parent->current:NULL, //dlalgo ... {NULL, NULL}, {NULL, NULL} }; //dlalgo VERBATIM -- 2.11.4.GIT