2
0
forked from Ivasoft/DSView

Code refactoring 24

This commit is contained in:
dreamsourcelabTAI
2022-09-30 19:24:07 +08:00
parent ceab0fd772
commit 27b38dbeb8
12 changed files with 128 additions and 100 deletions

View File

@@ -46,7 +46,9 @@ SR_PRIV struct sr_channel *sr_channel_new(uint16_t index, int type, gboolean ena
{
struct sr_channel *probe;
if (!(probe = g_try_malloc0(sizeof(struct sr_channel)))) {
probe = g_try_malloc0(sizeof(struct sr_channel));
if (probe == NULL) {
sr_err("Probe malloc failed.");
return NULL;
}