Skip to content

Commit 379cef3

Browse files
committed
libatalk: Do null check on result of bstring macro
1 parent 59868ab commit 379cef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libatalk/adouble/ad_conv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int ad_conv_dehex(const char *path, const struct stat *sp, const struct v
265265
rename(path, bdata(newpath));
266266
unbecome_root();
267267

268-
if (newpath == NULL) {
268+
if (bdata(newpath) == NULL) {
269269
EC_FAIL;
270270
}
271271
strlcpy(buf, bdata(newpath), sizeof(buf));

0 commit comments

Comments
 (0)