Skip to content

Commit

Permalink
libatalk: Do null check on result of bstring macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Jan 18, 2025
1 parent 59868ab commit 379cef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libatalk/adouble/ad_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static int ad_conv_dehex(const char *path, const struct stat *sp, const struct v
rename(path, bdata(newpath));
unbecome_root();

if (newpath == NULL) {
if (bdata(newpath) == NULL) {
EC_FAIL;
}
strlcpy(buf, bdata(newpath), sizeof(buf));
Expand Down

0 comments on commit 379cef3

Please sign in to comment.