Changeset 14748d7c2d9bb7457d44bf98a24b5f03860e2b63

Show
Ignore:
Timestamp:
01/26/12 00:38:41 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1327538321 -0500
git-parent:

[2c77cc6f256e2dd45190aaf508321a230e0095d4]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1327538321 -0500
Message:

crash bug on null values in JSON

Files:

Legend:

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

    rab62dcb r14748d7  
    182182  else snprintf(keybuff, sizeof(keybuff), fmt, arg); \ 
    183183} while(0) 
     184  if(o == NULL) { 
     185    if(prefix) { 
     186      noit_stats_set_metric(s, prefix, METRIC_STRING, NULL); 
     187      count++; 
     188    } 
     189    return count; 
     190  } 
    184191  switch(json_object_get_type(o)) { 
    185192    /* sub callers */