diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-09-18 10:43:34 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-09-18 11:03:32 +0200 |
commit | b254a5856589e06d5ef66bfb7c7b2127249f440e (patch) | |
tree | d22a735dc497b6cd5e6709bea783ccba12d3927d /src/worktree.h | |
parent | 37ae00799395637a37c306b8d1c41ae08f41acda (diff) | |
download | libgit2-pks-release-build-warnings.tar.gz |
sysdir: fix formatting error message with NULL stringpks-release-build-warnings
When trying to the template dir, we pass in a `NULL` pointer for the
filename. That's perfectly fine, but if we're failing to find the
template directory then we'll creat an error message with the `NULL`
pointer passed in.
Fix the issue by setting different error messages based on whether the
filename is given or not. This even makes sense, as we're not searching
for a file in case we have no `name`, but for a directory. So the error
would've been misleading anyway.
Diffstat (limited to 'src/worktree.h')
0 files changed, 0 insertions, 0 deletions