From: Panu Matilainen Date: Thu, 11 Mar 2010 11:21:20 +0000 (+0200) Subject: Dumb segfault on trigger scripts with no flags, doh X-Git-Tag: tznext/4.11.0.1.tizen20130304~2245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c0619de92059814856e57d1bdfcdff463f0c2d;p=tools%2Flibrpm-tizen.git Dumb segfault on trigger scripts with no flags, doh --- diff --git a/lib/psm.c b/lib/psm.c index 9f3388f..a2b859b 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -522,7 +522,7 @@ static rpmRC handleOneTrigger(const rpmpsm psm, struct rpmScript_s script = { .tag = triggertag(psm->sense), .body = triggerScripts[ix], - .flags = triggerFlags[ix], + .flags = triggerFlags ? triggerFlags[ix] : 0, .args = args };