diff --git a/src/at.c b/src/at.c index af26f51..5c35844 100644 --- a/src/at.c +++ b/src/at.c @@ -48,8 +48,11 @@ static int configure_serial(const char *tty) return fd; } -static void at_free_command(struct AtCommand *at_cmd, struct EG25Manager *manager) +static void at_free_command(gpointer cmd, gpointer data) { + struct AtCommand *at_cmd = cmd; + struct EG25Manager *manager = data; + if (!at_cmd) return;