3 ms·
In C it is quite common for functions to indicate failure by returning NULL. Not checking for these errors is another very common reason for segfaults.
by lubomir 13y ago
In C it is quite common for functions to indicate failure by returning NULL. Not checking for these errors is another very common reason for segfaults.