X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=options.c;fp=options.c;h=f698fb823f089e57c8f3a0a151e42110876e52fe;hb=781c0d657fffe80e45d0fda6ed5ddbf5f796fefb;hp=7d18f552f075cfcfa5f8c1c2083d472951bd410d;hpb=5c45b33fdf4a74a424b095d3f07f6102286b105e;p=pkg%2Fabook.git diff --git a/options.c b/options.c index 7d18f55..f698fb8 100644 --- a/options.c +++ b/options.c @@ -16,6 +16,7 @@ #include "options.h" #include "abook.h" #include "misc.h" +#include "xmalloc.h" #ifndef FALSE # define FALSE 0 @@ -99,7 +100,7 @@ set_str(enum str_opts opt, char *value) if(str_opts[opt]) free(str_opts[opt]); - str_opts[opt] = strdup(value); + str_opts[opt] = xstrdup(value); } int