summaryrefslogtreecommitdiff
blob: 9a67f62e7938d86c2689af17ab03bdde97337217 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- flawfinder-1.26/flawfinder
+++ flawfinder-1.26/flawfinder
@@ -1157,7 +1157,7 @@
            i = i + 1
            incomment = 0
     elif instring:
-       if c == '\\': i = i + 1
+       if c == '\\' and nextc != '\n': i = i + 1
        elif c == '"' and instring == 1: instring = 0
        elif c == "'" and instring == 2: instring = 0
     else: