mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
Missing goto
There is either a missing `goto fail` on this line, or the empty if statement line should be removed.
This commit is contained in:
parent
26dccc25b8
commit
4608f08159
@ -258,7 +258,7 @@ nc_http_write(NC_HTTP_STATE* state, const char* objecturl, NCbytes* payload)
|
||||
Trace("write");
|
||||
|
||||
if((stat = nc_http_set_payload(state,ncbyteslength(payload),ncbytescontents(payload)))) goto fail;
|
||||
if((stat = nc_http_set_method(state,HTTPPUT)));
|
||||
if((stat = nc_http_set_method(state,HTTPPUT))) goto fail;
|
||||
if((stat = setupconn(state,objecturl))) goto fail;
|
||||
if((stat = execute(state)))
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user