mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Work around warning on tag build due to && logic.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -290,10 +290,14 @@ const char __attribute__ ((malloc)) *get_FTL_version(void)
|
||||
// Obtain FTL version if not already determined
|
||||
if(FTLversion == NULL)
|
||||
{
|
||||
if(strlen(GIT_TAG) > 1 && strlen(GIT_VERSION) > 1)
|
||||
if(strlen(GIT_TAG) > 1 )
|
||||
{
|
||||
// Copy version string if this is a tagged release
|
||||
FTLversion = strdup(GIT_VERSION);
|
||||
if (strlen(GIT_VERSION) > 1)
|
||||
{
|
||||
// Copy version string if this is a tagged release
|
||||
FTLversion = strdup(GIT_VERSION);
|
||||
}
|
||||
|
||||
}
|
||||
else if(strlen(GIT_HASH) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user