mirror of
https://github.com/github/codeql.git
synced 2026-06-14 17:31:09 +02:00
C++
This commit is contained in:
@@ -9,9 +9,9 @@ public:
|
||||
char name[1000];
|
||||
};
|
||||
|
||||
GlobalStorage *g1; // BAD
|
||||
GlobalStorage *g1; // BAD // $ Alert
|
||||
static GlobalStorage g2; // GOOD
|
||||
static GlobalStorage *g3; // BAD
|
||||
static GlobalStorage *g3; // BAD // $ Alert
|
||||
// static variables are initialized by compilers
|
||||
static int a; // GOOD
|
||||
static int b = 0; // GOOD
|
||||
|
||||
Reference in New Issue
Block a user