summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RPM4/src/RPM4.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index be000b4..2a17ad0 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1490,11 +1490,11 @@ Ts_injectheader(db, header)
rpmts db
Header header
PREINIT:
- rpmdb rdb;
CODE:
#ifdef RPM4_9_0
croak("injectheader>rpmdbAdd exists only in rpm < 4.9; unused anyway");
#else
+ rpmdb rdb;
rdb = rpmtsGetRdb(db);
RETVAL = rpmdbAdd(rdb, 0, header, db, NULL);
#endif