projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba7b7a
)
Avoid freeing an unallocated variable (RhBug:688091)
author
Jindrich Novy
<jnovy@redhat.com>
Wed, 16 Mar 2011 14:07:55 +0000
(15:07 +0100)
committer
Jindrich Novy
<jnovy@redhat.com>
Wed, 16 Mar 2011 14:07:55 +0000
(15:07 +0100)
lib/manifest.c
patch
|
blob
|
history
diff --git
a/lib/manifest.c
b/lib/manifest.c
index
08c8c84
..
5d71f3f
100644
(file)
--- a/
lib/manifest.c
+++ b/
lib/manifest.c
@@
-96,6
+96,7
@@
rpmRC rpmReadPackageManifest(FD_t fd, int * argcPtr, char *** argvPtr)
/* Sanity checks: skip obviously binary lines and dash (for stdin) */
if (*s < 32 || rstreq(s, "-")) {
+ s = NULL;
rpmrc = RPMRC_NOTFOUND;
goto exit;
}