Skip to content

Commit

Permalink
Checking type in poller.c causes compiler error
Browse files Browse the repository at this point in the history
Closes #98
  • Loading branch information
netniV committed Jul 15, 2019
1 parent cca892d commit 29cbfae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ The Cacti Group | spine

1.2.5
-issue: Improve detection of MySQL vs. MariaDB client library requirement
-issue#98: Checking type in poller.c causes compiler error

1.2.4
-issue#92: Add Data Source ID to "Empty result' error messages
Expand Down
2 changes: 1 addition & 1 deletion poller.c
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@ char *exec_poll(host_t *current_host, char *command, int id, char *type) {
if (bytes_read > 0) {
result_string[bytes_read] = '\0';
} else {
if (type == "DS") {
if (STRIMATCH(type,"DS")) {
SPINE_LOG(("Device[%i] DS[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command));
} else {
SPINE_LOG(("Device[%i] DQ[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command));
Expand Down

0 comments on commit 29cbfae

Please # to comment.