IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14073


Ignore:
Timestamp:
Jul 8, 2007, 3:33:52 PM (19 years ago)
Author:
eugene
Message:

fixed null getpage

File:
1 edited

Legend:

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

    r14070 r14073  
    125125    for (i = 0; i < book[0].Npages; i++) {
    126126      value = BookGetWord (book[0].pages[i], Key);
    127       if (value == NULL) continue;
    128       if (!strcmp(value, Value)) Npages ++;
     127      if (value == NULL) {
     128        if (!strcmp(Value, "NULL")) {
     129          Npages ++;
     130        } else {
     131          continue;
     132        }
     133      } else {
     134        if (!strcmp(value, Value)) Npages ++;
     135      }
    129136    }
    130137  }
Note: See TracChangeset for help on using the changeset viewer.