Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1317de5cbe | ||
|
|
fac0ce6503 | ||
|
|
ae95ae6859 |
@@ -244,13 +244,7 @@ main() {
|
||||
check_git_repo
|
||||
|
||||
if [[ "$RELEASE_MODE" == true ]]; then
|
||||
if [[ "$VERSION_INCREMENT_EXPLICIT" == true ]]; then
|
||||
increment_version "$VERSION_INCREMENT_TYPE"
|
||||
else
|
||||
LATEST_TAG=$(git tag -l 'v*.*.*' | sort -V | tail -n 1 || echo "v0.0.1")
|
||||
NEW_VERSION="$LATEST_TAG"
|
||||
export NEW_VERSION
|
||||
fi
|
||||
increment_version "$VERSION_INCREMENT_TYPE"
|
||||
|
||||
if git tag "$NEW_VERSION" > /dev/null 2>&1; then
|
||||
print_success "Created tag: $NEW_VERSION"
|
||||
|
||||
@@ -584,7 +584,10 @@ char *dispatcher_handle_request(dispatcher_ctx_t *ctx, const char *json_request)
|
||||
|
||||
selector_request_init(&selector_req);
|
||||
|
||||
options_item = cJSON_GetArrayItem(params_item, 1);
|
||||
{
|
||||
int params_count = cJSON_GetArraySize(params_item);
|
||||
options_item = (params_count > 0) ? cJSON_GetArrayItem(params_item, params_count - 1) : NULL;
|
||||
}
|
||||
if (cJSON_IsObject(options_item)) {
|
||||
tmp = cJSON_GetObjectItemCaseSensitive(options_item, "role");
|
||||
if (tmp != NULL) {
|
||||
|
||||
@@ -451,8 +451,8 @@ int socket_name_random(char *out, size_t out_len);
|
||||
/* Version information (auto-updated by build/version tooling) */
|
||||
#define NSIGNER_VERSION_MAJOR 0
|
||||
#define NSIGNER_VERSION_MINOR 0
|
||||
#define NSIGNER_VERSION_PATCH 11
|
||||
#define NSIGNER_VERSION "v0.0.11"
|
||||
#define NSIGNER_VERSION_PATCH 14
|
||||
#define NSIGNER_VERSION "v0.0.14"
|
||||
|
||||
|
||||
/* NSIGNER_HEADERLESS_DECLS_END */
|
||||
|
||||
@@ -831,7 +831,10 @@ static int extract_method_and_selector(const char *json,
|
||||
|
||||
params_item = cJSON_GetObjectItemCaseSensitive(root, "params");
|
||||
if (cJSON_IsArray(params_item)) {
|
||||
options_item = cJSON_GetArrayItem(params_item, 1);
|
||||
{
|
||||
int params_count = cJSON_GetArraySize(params_item);
|
||||
options_item = (params_count > 0) ? cJSON_GetArrayItem(params_item, params_count - 1) : NULL;
|
||||
}
|
||||
if (cJSON_IsObject(options_item)) {
|
||||
tmp = cJSON_GetObjectItemCaseSensitive(options_item, "role");
|
||||
if (cJSON_IsString(tmp) && tmp->valuestring != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user