X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=cause.c;fp=cause.c;h=825daaa253e06fb48dd091f04fcb24b9e77fc5c7;hp=42fdb29bb4610adf3c9b29f6b30bd5ca1539047c;hb=54d34cda7a6f0d9bd3ff22d529ce69ff2c004bd3;hpb=fb872d7e65ffc0563789f92e9e6f10d855f13207 diff --git a/cause.c b/cause.c index 42fdb29..825daaa 100644 --- a/cause.c +++ b/cause.c @@ -405,9 +405,14 @@ void collect_cause(int *multicause, int *multilocation, int newcause, int newloc *multicause = newcause; *multilocation = newlocation; } else - if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, but no cause yet, use the location */ + if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, use the location */ { *multilocation = newlocation; + } else + if (*multicause==0) /* no cause yet, use newcause (should be 18) */ + { + *multicause = newcause; + *multilocation = newlocation; } }