M
moxm
I have a statement declares a globle variable like this :
char *pname = NULL;
Then I used splint to check the code, I got errors:
err.c:8:15: Global pname initialized to null value: pname = NULL
A reference with no null annotation is assigned or initialized to
NULL. Use
/*@null@*/ to declare the reference as a possibly null pointer. (Use
-nullassign to inhibit warning)
err.c:8:15: Global pname initialized to null value: char * pname = NULL
= NULL
What's that mean?
Any help is appreciated, thanks.
char *pname = NULL;
Then I used splint to check the code, I got errors:
err.c:8:15: Global pname initialized to null value: pname = NULL
A reference with no null annotation is assigned or initialized to
NULL. Use
/*@null@*/ to declare the reference as a possibly null pointer. (Use
-nullassign to inhibit warning)
err.c:8:15: Global pname initialized to null value: char * pname = NULL
= NULL
What's that mean?
Any help is appreciated, thanks.