summaryrefslogtreecommitdiff
path: root/rpmio/rpmhook.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-10-09 17:29:22 +0000
committerjbj <devnull@localhost>2004-10-09 17:29:22 +0000
commitb831315e41173e27a4e402c65d318b43558c4fca (patch)
tree4d8b5816ed2c4a51657bb698320cfd62761c29d0 /rpmio/rpmhook.c
parentd8822ba626caea60e6310157c1a180cde16bfe0a (diff)
downloadlibrpm-tizen-b831315e41173e27a4e402c65d318b43558c4fca.tar.gz
librpm-tizen-b831315e41173e27a4e402c65d318b43558c4fca.tar.bz2
librpm-tizen-b831315e41173e27a4e402c65d318b43558c4fca.zip
Splint fiddles.
CVS patchset: 7435 CVS date: 2004/10/09 17:29:22
Diffstat (limited to 'rpmio/rpmhook.c')
-rw-r--r--rpmio/rpmhook.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpmio/rpmhook.c b/rpmio/rpmhook.c
index ae78a8e47..87e251e31 100644
--- a/rpmio/rpmhook.c
+++ b/rpmio/rpmhook.c
@@ -41,7 +41,8 @@ rpmhookArgs rpmhookArgsNew(int argc)
rpmhookArgs rpmhookArgsFree(rpmhookArgs args)
{
- free(args);
+ if (args != NULL)
+ free(args);
return NULL;
}
@@ -156,8 +157,8 @@ static void rpmhookTableAddItem(rpmhookTable *table, const char *name,
}
static void rpmhookTableDelItem(rpmhookTable *table, const char *name,
- rpmhookFunc func, void *data,
- int matchfunc, int matchdata)
+ /*@null@*/ rpmhookFunc func, /*@null@*/ void *data,
+ int matchfunc, int matchdata)
/*@modifies *table @*/
{
int n = rpmhookTableFindBucket(table, name);