空指针错误通常是一个或多个程序员假设出错的结果。
Null pointer errors are usually the result of one or more programmer assumptions being violated.
在这里,“她(译注:指guru)面对屏幕挥了挥手,”传入一个空指针是一个编程错误,就像这个程序的文档写的那样。
In this... abomination, "she waved at the screen," passing a NULL pointer is a programming error, as the documentation for the function clearly states.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
应用推荐