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.
1 parent 3b7cf48 commit d47f7d1Copy full SHA for d47f7d1
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