Skip to content

Commit dc310b9

Browse files
authored
Merge pull request #222 from mbaluda-org/mbaluda-22-3-test
Fix RULE-22-3 test
2 parents 03e0340 + 0d83c9d commit dc310b9

File tree

1 file changed

+1
-1
lines changed
  • c/misra/test/rules/RULE-22-3

1 file changed

+1
-1
lines changed

c/misra/test/rules/RULE-22-3/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void f8(void) {
4646
void f9(void) {
4747
char name[50] = "tmp9";
4848
char ext[] = "txt";
49-
char file[] = strcat(name, ext);
49+
char *file = strcat(name, ext);
5050
FILE *fw = fopen(file, "r+");
5151
FILE *fr = fopen(strcat(name, ext), "r"); // NON_COMPLIANT[FALSE_NEGATIVE]
5252
}

0 commit comments

Comments
 (0)