projects
/
profile
/
ivi
/
murphy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8841f29
)
resource: cope with NULL reqset in mrp_resource_lua_veto()
v0.0.44
v0.0.45
author
Janos Kovacs
<jankovac503@gmail.com>
Wed, 5 Feb 2014 15:05:56 +0000
(17:05 +0200)
committer
Krisztian Litkey
<krisztian.litkey@intel.com>
Wed, 5 Feb 2014 15:14:26 +0000
(17:14 +0200)
src/resource/resource-lua.c
patch
|
blob
|
history
diff --git
a/src/resource/resource-lua.c
b/src/resource/resource-lua.c
index
16d9198
..
e9cd030
100644
(file)
--- a/
src/resource/resource-lua.c
+++ b/
src/resource/resource-lua.c
@@
-184,9
+184,9
@@
bool mrp_resource_lua_veto(mrp_zone_t *zone,
if (L && zone && rset && owners && methods &&
(sref = find_in_id_hash(rset->id)) &&
- (oref = owners_get(L, zone->id)) &&
- (rref = find_in_id_hash(reqset->id)))
+ (oref = owners_get(L, zone->id)))
{
+ rref = reqset ? find_in_id_hash(reqset->id) : NULL;
oref->owners = owners;
if ((veto = methods->veto)) {