R
Richard Heathfield
Niklas Norrthon said:
Right - it's clearly not a bug. He'd have been wiser to say something like
"anywhere where you define (not declare, define) a pointer without
initialising it to a known value (which might be NULL), consider it a bug".
So where is the bug in this code?
#include <stdio.h>
/* pointer not initialised to NULL following... */
const char* msg = "This is a message.";
Right - it's clearly not a bug. He'd have been wiser to say something like
"anywhere where you define (not declare, define) a pointer without
initialising it to a known value (which might be NULL), consider it a bug".