Fixed get_githash (#5892)

Fixes #5878

Thanks to @mazvi
This commit is contained in:
Lemongrass3110 2021-04-25 00:48:01 +02:00 committed by GitHub
parent 4f02cb0904
commit dc4d20ca52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21625,7 +21625,7 @@ BUILDIN_FUNC(get_githash) {
safestrncpy(buf,git,strlen(git)+1); safestrncpy(buf,git,strlen(git)+1);
if ( git[0] != UNKNOWN_VERSION ) if ( git[0] != UNKNOWN_VERSION )
script_pushstr(st,buf); script_pushstrcopy(st,buf);
else else
script_pushconststr(st,"Unknown"); //unknown script_pushconststr(st,"Unknown"); //unknown
return SCRIPT_CMD_SUCCESS; return SCRIPT_CMD_SUCCESS;