diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-07-08 17:46:54 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-07-08 17:46:54 +0200 |
commit | 6778dc94ce0a9234ed74cf094d98e219a295070f (patch) | |
tree | feb00c7752887b7f8b7e217d7a0656dac6d0e5d7 /build/parsePrep.c | |
parent | 096d1af159718bc8d6cea7355fa9f59bc4bd9f10 (diff) | |
download | rpm-6778dc94ce0a9234ed74cf094d98e219a295070f.tar.gz rpm-6778dc94ce0a9234ed74cf094d98e219a295070f.tar.bz2 rpm-6778dc94ce0a9234ed74cf094d98e219a295070f.zip |
Initialize optCon
- one could easily segfault the doPatchMacro() code without
the optCon initialization (particularly with jump to "exit" label)
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r-- | build/parsePrep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c index 9b62d1b06..4b0ccdff3 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -421,7 +421,7 @@ static rpmRC doPatchMacro(rpmSpec spec, const char *line) { NULL, 'F', POPT_ARG_INT, &opt_F, 'F', NULL, NULL }, { NULL, 0, 0, NULL, 0, NULL, NULL } }; - poptContext optCon; + poptContext optCon = NULL; opt_p = opt_R = opt_E = 0; opt_F = rpmExpandNumeric("%{_default_patch_fuzz}"); /* get default fuzz factor for %patch */ |