Skip to content

Commit

Permalink
fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Qiang committed Feb 22, 2018
1 parent 72abb12 commit 2ca2849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ tags
# output
build/
node_modules/
package-lock.json
*.out
2 changes: 1 addition & 1 deletion src/nodescws.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void NodeScws::ScwsInit()
scws_set_rule_json(scws, rule, SCWS_RULE_JSON_FILE);
}
// ini
else if (strstr(rule, ".ini") > 0) {
else if (strstr(rule, ".ini") != NULL) {
Log(NODESCWS_MSG_LOG, "Setting specified rule %s\n", rule);
scws_set_rule(scws, rule);
}
Expand Down

0 comments on commit 2ca2849

Please sign in to comment.