Skip to content

Commit

Permalink
(a12/directory) suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
letoram committed May 19, 2023
1 parent 63023da commit d7694e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/a12/net/directory.c
Expand Up @@ -52,7 +52,7 @@ static FILE* cmd_to_membuf(const char* cmd, char** out, size_t* out_sz)

FILE* applbuf = open_memstream(out, out_sz);
if (!applbuf){
fclose(applin);
pclose(applin);
return NULL;
}

Expand All @@ -67,7 +67,7 @@ static FILE* cmd_to_membuf(const char* cmd, char** out, size_t* out_sz)
}
}

fclose(applin);
pclose(applin);
if (!ok){
fclose(applbuf);
return NULL;
Expand Down

0 comments on commit d7694e1

Please sign in to comment.