Fix compile

This commit is contained in:
Zhipeng Xue 2023-02-28 18:37:18 +08:00
parent e0792b41a0
commit ec6471e7e8

View File

@ -1139,7 +1139,7 @@ aws_load_credentials(NCglobalstate* gstate)
/* add a "none" credentials */
{
struct AWSprofile* noprof = (struct AWSprofile*)calloc(1,sizeof(struct AWSprofile));
if(noprof == NULL) {ret = NC_ENOMEM; goto done;}
if(noprof == NULL) {stat = NC_ENOMEM; goto done;}
noprof->name = strdup("none");
noprof->entries = nclistnew();
nclistpush(profiles,noprof); noprof = NULL;