Fix warnings: spell.c: store_aff_word(): Garbage value: RI.

Problem    : Result of operation is garbage or undefined @ 5809.
Diagnostic : Real issue.
Rationale  : When copying flags, first access to
             `use_pfxlist[use_pfxlen]` was garbage if
             `spin->si_compflags` was null.
Resolution : Make sure `use_pfxlist[use_pfxlen]` always has a value (NUL
             if `spin->si_compflags` is NULL).
This commit is contained in:
Eliseo Martínez 2014-11-13 19:17:52 +01:00
parent a09b7f2e2e
commit 5f9cacbf32

View File

@ -5804,6 +5804,8 @@ store_aff_word (
// Get compound IDS from the affix list. // Get compound IDS from the affix list.
get_compflags(affile, ae->ae_flags, get_compflags(affile, ae->ae_flags,
use_pfxlist + use_pfxlen); use_pfxlist + use_pfxlen);
else
use_pfxlist[use_pfxlen] = NUL;
// Combine the list of compound flags. // Combine the list of compound flags.
// Concatenate them to the prefix IDs list. // Concatenate them to the prefix IDs list.