mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 16:43:16 +00:00
Merge pull request #4009 from pranitbauva1997/fix-string-format
use `giterr_set_str()` wherever possible
This commit is contained in:
commit
6b0510e5e1
@ -552,7 +552,7 @@ int git_index_clear(git_index *index)
|
|||||||
|
|
||||||
static int create_index_error(int error, const char *msg)
|
static int create_index_error(int error, const char *msg)
|
||||||
{
|
{
|
||||||
giterr_set(GITERR_INDEX, msg);
|
giterr_set_str(GITERR_INDEX, msg);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ static int zstream_seterr(git_zstream *zs)
|
|||||||
if (zs->zerr == Z_MEM_ERROR)
|
if (zs->zerr == Z_MEM_ERROR)
|
||||||
giterr_set_oom();
|
giterr_set_oom();
|
||||||
else if (zs->z.msg)
|
else if (zs->z.msg)
|
||||||
giterr_set(GITERR_ZLIB, zs->z.msg);
|
giterr_set_str(GITERR_ZLIB, zs->z.msg);
|
||||||
else
|
else
|
||||||
giterr_set(GITERR_ZLIB, "Unknown compression error");
|
giterr_set(GITERR_ZLIB, "Unknown compression error");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user