The set value of uid/euid is set by 0 only it was invalid.
To avoid access to uninitialized value of set after that,
set the set value in the valid case too.
Change-Id: Ia6add4eb382402f901314cb91f971234c3a73bfe
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
snprintf( suid, sizeof suid, "%u", (unsigned)get_uid(reading->context));
uid.id = suid;
array[n++] = &uid;
+ uid.set = 1;
}
else {
uid.set = 0;
snprintf( seuid, sizeof seuid, "%u", (unsigned)get_euid(reading->context));
euid.id = seuid;
array[n++] = &euid;
+ euid.set = 1;
}
else {
euid.set = 0;