diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2013-01-17 16:20:02 +0200 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-02-02 16:44:45 -0800 |
commit | cc473821cc968f254aa21d46d1d244a028e1bc1a (patch) | |
tree | 17351343b08b204479ae4bf84310deab2da76cb5 /plugins | |
parent | 50ba2d1d62cbba83a782b9db2bb9ec5235f43325 (diff) | |
download | librpm-tizen-cc473821cc968f254aa21d46d1d244a028e1bc1a.tar.gz librpm-tizen-cc473821cc968f254aa21d46d1d244a028e1bc1a.tar.bz2 librpm-tizen-cc473821cc968f254aa21d46d1d244a028e1bc1a.zip |
fixing error in cleanup if magic db can't be loaded
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/msm-plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/msm-plugin.c b/plugins/msm-plugin.c index b62ab8a8a..4556102fe 100644 --- a/plugins/msm-plugin.c +++ b/plugins/msm-plugin.c @@ -152,6 +152,7 @@ rpmRC PLUGINHOOK_INIT_FUNC(rpmts _ts, const char *name, const char *opts) if (magic_load(cookie, NULL) != 0) { rpmlog(RPMLOG_ERR, "cannot load magic database - %s\n", magic_error(cookie)); magic_close(cookie); + cookie = NULL; return RPMRC_FAIL; } |