summaryrefslogtreecommitdiff
path: root/build/parseFiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/parseFiles.c')
-rw-r--r--build/parseFiles.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/parseFiles.c b/build/parseFiles.c
index f6ee8c90c..759fc0ca6 100644
--- a/build/parseFiles.c
+++ b/build/parseFiles.c
@@ -33,7 +33,10 @@ int parseFiles(Spec spec)
int flag = PART_SUBNAME;
poptContext optCon = NULL;
- name = file = NULL;
+ /*@-mods@*/
+ name = NULL;
+ file = NULL;
+ /*@=mods@*/
if ((rc = poptParseArgvString(spec->line, &argc, &argv))) {
rpmError(RPMERR_BADSPEC, _("line %d: Error parsing %%files: %s\n"),
@@ -59,8 +62,10 @@ int parseFiles(Spec spec)
}
if (poptPeekArg(optCon)) {
+ /*@-mods@*/
if (name == NULL)
name = poptGetArg(optCon);
+ /*@=mods@*/
if (poptPeekArg(optCon)) {
rpmError(RPMERR_BADSPEC, _("line %d: Too many names: %s\n"),
spec->lineNum,