Stricter arguments checking
This commit is contained in:
parent
e7b7b4030a
commit
56ab5556ef
|
@ -103,7 +103,7 @@ AppTransport * apptransport_new(AppTransportMode mode,
|
|||
error_set_code(1, "%s", "Invalid transport");
|
||||
return NULL;
|
||||
}
|
||||
if(event == NULL)
|
||||
if(name == NULL || event == NULL)
|
||||
{
|
||||
error_set_code(1, "%s", "Invalid arguments");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user