Missing Segmentation Fault

I thought that dereferencing a NULL pointer would ALWAYS cause a segmentation fault, but when my program (running under Ubuntu OS) executes this line of code

_node == &_group->_end

when _group is NULL, the program just smiles happily and continues on it's merry way. I was expecting a program crash. Could someone please explain?

There is no guarantees what will happen when you try to dereference a NULL pointer. It might crash, or it might "work", or behave strange or whatever.
Topic archived. No new replies allowed.