diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:19:10 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:19:10 (EST) |
commit | 8c5b3a601366faa6901f7f58ef3543fb9b93dc12 (patch) | |
tree | b6298f99d54218d269073ac9bdaa0c9ea57875d3 | |
parent | 046cea8149c35b8d0dca6246c284f1d3c004410d (diff) |
opkg: strdup the command line arguments so we can free the struct properly later
git-svn-id: http://opkg.googlecode.com/svn/trunk@117 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/args.c b/libopkg/args.c index 6143f11..495f1a8 100644 --- a/libopkg/args.c +++ b/libopkg/args.c @@ -149,14 +149,14 @@ int args_parse(args_t *args, int argc, char *argv[]) args->query_all = 1; break; case 'd': - args->dest = optarg; + args->dest = strdup (optarg); break; case 'f': free(args->conf_file); args->conf_file = strdup(optarg); break; case 'o': - args->offline_root = optarg; + args->offline_root = strdup (optarg); break; case 'n': args->noaction = 1; |