diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-09-25 19:30:47 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-09-25 20:03:50 +0200 |
commit | 50ef054902618edec7a29f5b3b5cb4ae2e12a20f (patch) | |
tree | f17ad3b04f3c6a8b6ac37d50bb904cf824726f5b /rpmio/rpmhook.c | |
parent | 008280006d5f6bf3696adffb431e968faabc594e (diff) | |
download | rpm-50ef054902618edec7a29f5b3b5cb4ae2e12a20f.tar.gz rpm-50ef054902618edec7a29f5b3b5cb4ae2e12a20f.tar.bz2 rpm-50ef054902618edec7a29f5b3b5cb4ae2e12a20f.zip |
Use safer xstrdup() instead of strdup() wherever possible
Diffstat (limited to 'rpmio/rpmhook.c')
-rw-r--r-- | rpmio/rpmhook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmhook.c b/rpmio/rpmhook.c index 8e5f695a3..6c9b63acf 100644 --- a/rpmio/rpmhook.c +++ b/rpmio/rpmhook.c @@ -132,7 +132,7 @@ static void rpmhookTableAddItem(rpmhookTable *table, const char *name, rpmhookBucket bucket = &(*table)->bucket[n]; rpmhookItem *item = &bucket->item; if (!bucket->name) { - bucket->name = strdup(name); + bucket->name = xstrdup(name); (*table)->used++; } while (*item) item = &(*item)->next; |