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 03e0340 + 0d83c9d commit dc310b9Copy full SHA for dc310b9
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