Announcement

Collapse
No announcement yet.

Returning NULL character, using readconfig sample

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Returning NULL character, using readconfig sample

    When I run this:

    memzero(&xmlReadValueSpec, sizeof(xmlReadValueSpec));
    xmlReadValueSpec.type = XML_READ_VALUE_TYPE__CONFIGURATION;
    xmlReadValueSpec.groupName = "filesystem";
    xmlReadValueSpec.itemName = "filesystem";
    xmlReadValueSpec.optValueName = "size";

    FSTotalSize_ptr = XMLReadValue_malloc(&xmlReadValueSpec);
    snprintf(outBuffer, sizeof(outBuffer), "available char: %s", FSTotalSize_ptr);
    TLOG(TLOG_SEVERITY_DEBUG, outBuffer);
    All I get in return is a NULL.

    any ideas?

    Thanks

  • #2
    One question to ask before proceeding forward...

    Are you using the correct version of the Sourcery G++ compiler? We have not yet released support for the latest version of Sourcery G++, and require the use of the version described here.

    Comment


    • #3
      I figured it out....

      Need to make the line:

      xmlReadValueSpec.type = XML_READ_VALUE_TYPE__CONFIGURATION;
      xmlReadValueSpec.type = XML_READ_VALUE_TYPE__STATUS;

      Comment

      Working...
      X