projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91953f1
)
Lose unused static initialization foo
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 1 Apr 2010 14:49:07 +0000
(17:49 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 1 Apr 2010 14:49:07 +0000
(17:49 +0300)
lib/rpmdb.c
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
e948bcc
..
2888421
100644
(file)
--- a/
lib/rpmdb.c
+++ b/
lib/rpmdb.c
@@
-718,11
+718,6
@@
rpmdb newRpmdb(const char * root,
int mode, int perms, int flags)
{
rpmdb db = xcalloc(sizeof(*db), 1);
- static int _initialized = 0;
-
- if (!_initialized) {
- _initialized = 1;
- }
*db = dbTemplate; /* structure assignment */