We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6763ff + 65b78ea commit 6b0510eCopy full SHA for 6b0510e
src/index.c
@@ -552,7 +552,7 @@ int git_index_clear(git_index *index)
552
553
static int create_index_error(int error, const char *msg)
554
{
555
- giterr_set(GITERR_INDEX, msg);
+ giterr_set_str(GITERR_INDEX, msg);
556
return error;
557
}
558
src/zstream.c
@@ -21,7 +21,7 @@ static int zstream_seterr(git_zstream *zs)
21
if (zs->zerr == Z_MEM_ERROR)
22
giterr_set_oom();
23
else if (zs->z.msg)
24
- giterr_set(GITERR_ZLIB, zs->z.msg);
+ giterr_set_str(GITERR_ZLIB, zs->z.msg);
25
else
26
giterr_set(GITERR_ZLIB, "Unknown compression error");
27
0 commit comments