IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33622


Ignore:
Timestamp:
Mar 30, 2012, 7:44:35 AM (14 years ago)
Author:
eugene
Message:

raise an error for list -copy if input is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.basic/list.c

    r33476 r33622  
    105105    }
    106106   
     107    // old list must exist, or give an error
    107108    sprintf (line, "%s:n", argv[3]);
    108109    N = get_int_variable (line, &found);
     110    if (!found) {
     111      gprint (GP_ERR, "USAGE: list (newlist) -copy (oldlist) ...\n");
     112      gprint (GP_ERR, "ERROR: missing input list\n");
     113      return (FALSE);
     114    }
     115     
     116
    109117    sprintf (line, "%s:n", argv[1]);
    110118    set_int_variable (line, N);
Note: See TracChangeset for help on using the changeset viewer.