IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8178


Ignore:
Timestamp:
Aug 4, 2006, 4:03:33 PM (20 years ago)
Author:
eugene
Message:

added syntax error message on logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/run_if.c

    r7917 r8178  
    3030  /* determine value of conditional expression */
    3131  val = dvomath (1, &argv[1], &size, 0);
    32   if (val == NULL) return (FALSE);
     32  if (val == NULL) {
     33    gprint (GP_ERR, "syntax error in logic: %s\n", argv[1]);
     34    return (FALSE);
     35  }
    3336  logic = atof (val); /* warning: round-off error is a danger */
    3437  free (val);
Note: See TracChangeset for help on using the changeset viewer.