다음을 통해 공유


PREfast Warning 11 (Windows CE 5.0)

Send Feedback

11 - Dereferencing NULL pointer <pointer>.

This warning indicates that the specified pointer is being dereferenced but might be a NULL pointer.

Example

Defective Source

char    *p = (char *)malloc(10);
*p = '\0';

Corrected Source

char    *p = (char *)malloc(10);
if (p) {
    *p = '\0';
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.