X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=HACKING;h=17183ed147be9749b375bf4a7d7d32c3c85885a6;hp=d1edc8715673d26f5d6dc7a858a7137d7fbaf724;hb=8ad61f4071a69445a6917d214b6592878447ddb1;hpb=8df906e5b0da130f104e67eeb15b379c12a1916b diff --git a/HACKING b/HACKING index d1edc871..17183ed1 100644 --- a/HACKING +++ b/HACKING @@ -38,7 +38,7 @@ Random notes glib's g_try_malloc()/g_try_malloc0() was used, use g_free() to free the memory. Otherwise use standard free(). Never use the wrong function! - - Never use g_malloc() or g_malloc0(). These functions do not return NULL + - Never use g_malloc() or g_malloc0(). These functions do not return nullptr if not enough memory is available but rather lead to an exit() or segfault instead. This behaviour is not acceptable. Use g_try_malloc()/g_try_malloc0() instead and check the return value.