Skip to content

Commit 5472db2

Browse files
authored
Merge pull request #198 from mgreter/clang/avoid-warning
Avoid clang warning (-Warray-bounds)
2 parents f5173ed + f5b3b03 commit 5472db2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: sassc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ int main(int argc, char** argv) {
314314
}
315315

316316
int result;
317-
if(optind < argc && strcmp(argv[optind], "-") != 0 && !from_stdin) {
317+
const char* dash = "-";
318+
if(optind < argc && strcmp(argv[optind], dash) != 0 && !from_stdin) {
318319
if (optind + 1 < argc) {
319320
outfile = argv[optind + 1];
320321
}

0 commit comments

Comments
 (0)