diff options
Diffstat (limited to 'build/parseScript.c')
-rw-r--r-- | build/parseScript.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/parseScript.c b/build/parseScript.c index db0af7f7d..95c88921f 100644 --- a/build/parseScript.c +++ b/build/parseScript.c @@ -96,9 +96,11 @@ int parseScript(Spec spec, int parsePart) poptContext optCon = NULL; reqargs[0] = '\0'; + /*@-mods@*/ name = NULL; prog = "/bin/sh"; file = NULL; + /*@=mods@*/ /*@-branchstate@*/ switch (parsePart) { @@ -203,8 +205,10 @@ int parseScript(Spec spec, int parsePart) } 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, |