base: add s tring for unrecognized platofrm id

This commit is contained in:
tylen 2024-09-27 21:09:13 +00:00 committed by Vasily Davydov
parent 37b02e144d
commit c47488479b

View File

@ -15,7 +15,8 @@
const char* SUPPORTED_PLATFORM_NAMES[] = { const char* SUPPORTED_PLATFORM_NAMES[] = {
"github.com", "github.com",
"gitlab.com"}; "gitlab.com",
"Unrecognized"};
static void throw_regex_error(int errcode, const regex_t* preg, const char* str) { static void throw_regex_error(int errcode, const regex_t* preg, const char* str) {
char regex_error_buffer[REGEX_ERROR_STR_MAX_LEN] = {0}; char regex_error_buffer[REGEX_ERROR_STR_MAX_LEN] = {0};
@ -160,4 +161,4 @@ PlatformIdList* identify_platfroms_from_project(const char* project_path, const
lines_free(git_remote_urls); lines_free(git_remote_urls);
buffer_free(git_config_path_buffer); buffer_free(git_config_path_buffer);
return platforms; return platforms;
} }