We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdb3ab6 + dc310b9 commit 5ce2983Copy full SHA for 5ce2983
c/misra/test/rules/RULE-22-3/test.c
@@ -46,7 +46,7 @@ void f8(void) {
46
void f9(void) {
47
char name[50] = "tmp9";
48
char ext[] = "txt";
49
- char file[] = strcat(name, ext);
+ char *file = strcat(name, ext);
50
FILE *fw = fopen(file, "r+");
51
FILE *fr = fopen(strcat(name, ext), "r"); // NON_COMPLIANT[FALSE_NEGATIVE]
52
}
0 commit comments