# HG changeset patch # User Mark Doliner # Date 1389505312 28800 # Node ID cda30ef360d0e792589d5d107bfd1fa785f558eb # Parent 6057ecea67bf398023579797bbe17bdd4fadd521 g_malloc segfaults if it can't allocate the requested memory, so this check is always false and therefore unnecessary. diff -r 6057ecea67bf -r cda30ef360d0 libpurple/protocols/mxit/markup.c --- a/libpurple/protocols/mxit/markup.c Thu Jan 09 22:45:16 2014 -0800 +++ b/libpurple/protocols/mxit/markup.c Sat Jan 11 21:41:52 2014 -0800 @@ -215,11 +215,6 @@ len = (uint8_t)data[1]; /* length field [1 byte] */ out_str = g_malloc(len + 1); - if (out_str == NULL) { - purple_debug_fatal(MXIT_PLUGIN_ID, "asn_getUtf8: out of memory"); - return -1; - } - memcpy(out_str, &data[2], len); /* data field */ out_str[len] = '\0';