aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index dfe3c85..5429256 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1274,6 +1274,9 @@ static void *rpmRunTransactions_callback(const void *h,
char *callback_type = NULL;
char *callback_subtype = NULL;
+ if (!td)
+ return NULL;
+
switch (what) {
case RPMCALLBACK_INST_OPEN_FILE:
callback = td->callback_open;