We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55cfad9 commit b78659eCopy full SHA for b78659e
src/jlapi.c
@@ -291,14 +291,14 @@ static const char *git_info_string(const char *fld) {
291
292
DLLEXPORT const char *jl_git_branch()
293
{
294
- static char *branch = NULL;
+ static const char *branch = NULL;
295
if (!branch) branch = git_info_string("branch");
296
return branch;
297
}
298
299
DLLEXPORT const char *jl_git_commit()
300
301
- static char *commit = NULL;
+ static const char *commit = NULL;
302
if (!commit) commit = git_info_string("commit");
303
return commit;
304
0 commit comments