Changeset 4446


Ignore:
Timestamp:
05/21/08 17:58:01 (5 years ago)
Author:
thomas
Message:

opkg: strdup the command line arguments so we can free the struct properly later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/args.c

    r4443 r4446  
    150150               break; 
    151151          case 'd': 
    152                args->dest = optarg; 
     152               args->dest = strdup (optarg); 
    153153               break; 
    154154          case 'f': 
     
    157157               break; 
    158158          case 'o': 
    159                args->offline_root = optarg; 
     159               args->offline_root = strdup (optarg); 
    160160               break; 
    161161          case 'n': 
Note: See TracChangeset for help on using the changeset viewer.