Skip to content

Commit c0540ab

Browse files
committed
Updates to smbresult_tocsv error checking
1 parent 1a3e36b commit c0540ab

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/smb.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ static smbresultlist* browse(SMBCCTX *ctx, char *path, int maxdepth, int depth)
124124
}
125125

126126
size_t smbresult_tocsv(smbresult data, char **buf, char *ace) {
127-
if(data.statuscode == NULL) {
128-
return 0;
129-
}
130-
131-
if(data.statuscode <= 0) {
127+
if(data.statuscode < 0) {
132128
return 0;
133129
}
134130

0 commit comments

Comments
 (0)