IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2018, 9:46:20 AM (8 years ago)
Author:
eugene
Message:

do not report an error if dvomath determines expression is a string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/parse.c

    r40291 r40330  
    145145    /* simple variable assignment */
    146146    /* dvomath returns a new string, or NULL, with the result of the expression */
     147    /* if dvomath returns NULL, the expression was not a math operation: treat as a string */
    147148    val = dvomath (1, &V1, &size, 0);
    148149    if (val == NULL) {
    149150      while (OHANA_WHITESPACE (*V1)) V1++;
    150151      val = strcreate (V1);
     152      init_error ();
    151153    }
    152154    // save the result
Note: See TracChangeset for help on using the changeset viewer.