Fix ffStrSet

This commit is contained in:
Linus Dierheimer
2022-08-27 12:22:03 +02:00
parent f4ee8667b1
commit 873c7d93b6
+4 -6
View File
@@ -1,5 +1,6 @@
#include "fastfetch.h"
#include "common/parsing.h"
#include <ctype.h>
#include <inttypes.h>
bool ffStrSet(const char* str)
@@ -7,13 +8,10 @@ bool ffStrSet(const char* str)
if(str == NULL)
return false;
while(*str != '\0')
{
if(*str != ' ' && *str != '\t' && *str != '\n' && *str != '\r')
return true;
}
while(isspace(*str))
str++;
return false;
return *str != '\0';
}
void ffParseSemver(FFstrbuf* buffer, const FFstrbuf* major, const FFstrbuf* minor, const FFstrbuf* patch)