From 13cd9f01b287fa84cb59c3e192e261eb0cc8e01a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 26 Apr 2014 01:36:02 +0800 Subject: [PATCH] Fixed argument checking --- src/apptransport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apptransport.c b/src/apptransport.c index 65ef3d3..72ade9d 100644 --- a/src/apptransport.c +++ b/src/apptransport.c @@ -94,7 +94,7 @@ AppTransport * apptransport_new(AppTransportMode mode, fprintf(stderr, "DEBUG: %s(\"%s\", \"%s\")\n", __func__, plugin, name); #endif /* check the arguments */ - if(name == NULL || name[0] == '\0') + if(plugin == NULL || plugin[0] == '\0') { error_set_code(1, "%s", "Invalid transport"); return NULL;