r4446 - trunk/src/target/opkg/libopkg

thomas at docs.openmoko.org thomas at docs.openmoko.org
Wed May 21 17:58:02 CEST 2008


Author: thomas
Date: 2008-05-21 17:58:01 +0200 (Wed, 21 May 2008)
New Revision: 4446

Modified:
   trunk/src/target/opkg/libopkg/args.c
Log:
opkg: strdup the command line arguments so we can free the struct properly later


Modified: trunk/src/target/opkg/libopkg/args.c
===================================================================
--- trunk/src/target/opkg/libopkg/args.c	2008-05-21 09:57:10 UTC (rev 4445)
+++ trunk/src/target/opkg/libopkg/args.c	2008-05-21 15:58:01 UTC (rev 4446)
@@ -149,14 +149,14 @@
 	       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;





More information about the commitlog mailing list