diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-04 17:05:35 +0700 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-11 19:05:46 +0700 |
commit | 6e7417c342b0624e3f3c5686bb43026786423692 (patch) | |
tree | f9d831901f14ecf28e0204cc8d5e6e6b175e5507 /config | |
parent | e4570f5db5157f4233454c938733a2a0d6a1cb8f (diff) |
config: Replace xstrdup with strdup in add_option()
All callers of add_option pass string literal as "key" argument
except one, where non-NULL condition is guarded by if().
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/config.c b/config/config.c index d42a16a1f..d86f7c649 100644 --- a/config/config.c +++ b/config/config.c @@ -133,7 +133,7 @@ add_option(InputOption **options, const char *key, const char *value) *options = calloc(sizeof(**options), 1); if (!*options) /* Yeesh. */ return; - (*options)->key = xstrdup(key); + (*options)->key = strdup(key); (*options)->value = strdup(value); (*options)->next = NULL; } |