sqc 0.4.13

Software Code Quality - CERT C compliance checker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Rule: FIO21-C
 * Source: wiki
 * Status: FAIL - Should trigger FIO21-C violation
 */

#include <stdio.h>
 
void func(void) {
  FILE *fp = tmpfile();
  if (fp == NULL) {
    /* Handle error */
  }
}