Changeset 44fa704e22ae1a744f040d1c7d9239a991449a99

Show
Ignore:
Timestamp:
05/27/10 17:40:47 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1274982047 +0000
git-parent:

[e20fb1d8dba51180495faf50e6b01af016c27bbb]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1274982047 +0000
Message:

refs #284

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_conf.c

    rc2d49f8 r44fa704  
    412412  node = xmlXPathNodeSetItem(pobj->nodesetval, cnt-1); 
    413413  /* 1. */ 
    414   if(cnt > 1) { 
     414  if(cnt > 1 && node) { 
    415415    parent_node = xmlXPathNodeSetItem(pobj->nodesetval, cnt-2); 
    416416    if(parent_node != current_node) 
     
    10951095 
    10961096  info = noit_console_userdata_get(ncct, NOIT_CONF_T_USERDATA); 
    1097   if(info) path = basepath = info->path; 
     1097  if(info && info->path) path = basepath = info->path; 
    10981098  if(!info && argc == 0) { 
    10991099    nc_printf(ncct, "argument required when not in configuration mode\n"); 
     
    12161216 
    12171217  node = (noit_conf_section_t)xmlXPathNodeSetItem(pobj->nodesetval, 0); 
     1218  if(!node) { 
     1219    err = "internal XML error"; 
     1220    goto bad; 
     1221  } 
    12181222  if(!strcmp((char *)node->name, "check") || 
    12191223     !strcmp((char *)node->name, "noit") ||