mirror of
https://github.com/github/codeql.git
synced 2026-04-12 02:24:00 +02:00
5 lines
214 B
C++
5 lines
214 B
C++
void* p = (void*) 42; //Wrong: non-zero constant assigned to pointer. Is unportable
|
|
//and will likely lead to a segfault.
|
|
|
|
void* p2 = NULL; //Correct: NULL (which is 0) assigned to a pointer
|