IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14068


Ignore:
Timestamp:
Jul 8, 2007, 12:18:28 PM (19 years ago)
Author:
eugene
Message:

set missing variables values to NULL (if -var is requested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/book_commands.c

    r12332 r14068  
    385385  value = BookGetWord (page, argv[3]);
    386386  if (value == NULL) {
    387     gprint (GP_ERR, "value %s on page %s in book %s not found\n", argv[3], argv[2], argv[1]);
    388     FREE (varName);
    389     return FALSE;
     387    if (varName == NULL) {
     388      gprint (GP_ERR, "value %s on page %s in book %s not found\n", argv[3], argv[2], argv[1]);
     389      FREE (varName);
     390      return FALSE;
     391    } else {
     392      set_str_variable (varName, "NULL");
     393      FREE (varName);
     394      return TRUE;
     395    }
    390396  }
    391397
Note: See TracChangeset for help on using the changeset viewer.