common initializer: remove unnecessary code.

x is always not equal to zero.
This commit is contained in:
Hermet Park 2021-08-09 16:14:36 +09:00
parent 4b54d7fcb6
commit 0773185f92

View file

@ -62,7 +62,6 @@ static bool _buildVersionInfo()
char micro[3];
x = SRC + strlen(THORVG_VERSION_STRING);
if (!x) return false;
strncpy(micro, p, x - p);
micro[x - p] = '\0';