X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=srd.c;h=68cfe0aa0b786adcd2eca26628cda2e58efaa667;hp=8799de07374010b5774a694f8fc0f08739775d4b;hb=c357abd198bd195cb9ea015130dc76c8c7a33651;hpb=f6c7eade2b8853b3d525b5cc0402e89ca74c1908
diff --git a/srd.c b/srd.c
index 8799de0..68cfe0a 100644
--- a/srd.c
+++ b/srd.c
@@ -62,7 +62,7 @@ extern SRD_PRIV int max_session_id;
*
* @section sec_mailinglists Mailing lists
*
- * There are two mailing lists for sigrok/libsigrokdecode: sigrok-devel and sigrok-commits.
+ * There is one mailing list for sigrok/libsigrokdecode: sigrok-devel.
*
* @section sec_irc IRC
*
@@ -248,10 +248,7 @@ SRD_PRIV int srd_decoder_searchpath_add(const char *path)
/* Convert to wide chars. */
wc_len = sizeof(wchar_t) * (new_path->len + 1);
- if (!(wc_new_path = g_try_malloc(wc_len))) {
- srd_dbg("malloc failed");
- return SRD_ERR_MALLOC;
- }
+ wc_new_path = g_malloc(wc_len);
mbstowcs(wc_new_path, new_path->str, wc_len);
PySys_SetPath(wc_new_path);
g_string_free(new_path, TRUE);