Skip to content

Commit 29cbfae

Browse files
committed
Checking type in poller.c causes compiler error
Closes #98
1 parent cca892d commit 29cbfae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ The Cacti Group | spine
22

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

67
1.2.4
78
-issue#92: Add Data Source ID to "Empty result' error messages

poller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ char *exec_poll(host_t *current_host, char *command, int id, char *type) {
19941994
if (bytes_read > 0) {
19951995
result_string[bytes_read] = '\0';
19961996
} else {
1997-
if (type == "DS") {
1997+
if (STRIMATCH(type,"DS")) {
19981998
SPINE_LOG(("Device[%i] DS[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command));
19991999
} else {
20002000
SPINE_LOG(("Device[%i] DQ[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command));

0 commit comments

Comments
 (0)