This commit fixes check the argument field location.
Change-Id: I076de6721857cb4bbdcb4401f981794666ba7c78
Signed-off-by: Jihun Ahn <jhun.ahn@samsung.com>
struct http_client_ssl_config_t *ssl_conf = ssl_config;
#endif
+ if (response == NULL) {
+ printf("Error: Response is null\n");
+ return -1;
+ }
if (request == NULL) {
printf("Error: Request is null\n");
return -1;
request->tls = false;
request->response = response;
}
- if (response == NULL) {
- printf("Error: Response is null\n");
- goto errout;
- }
if (request->url == NULL) {
printf("Error: URL is NULL!!\n");
goto errout;