Skip to content

Commit

Permalink
Merge pull request #198 from mgreter/clang/avoid-warning
Browse files Browse the repository at this point in the history
Avoid clang warning (-Warray-bounds)
  • Loading branch information
mgreter committed Oct 22, 2016
2 parents f5173ed + f5b3b03 commit 5472db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sassc.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ int main(int argc, char** argv) {
}

int result;
if(optind < argc && strcmp(argv[optind], "-") != 0 && !from_stdin) {
const char* dash = "-";
if(optind < argc && strcmp(argv[optind], dash) != 0 && !from_stdin) {
if (optind + 1 < argc) {
outfile = argv[optind + 1];
}
Expand Down

0 comments on commit 5472db2

Please sign in to comment.