diff --git a/src/lib66/exec/ssexec_status.c b/src/lib66/exec/ssexec_status.c index 037da8ff1a302a722960e06d3f06fa96d824f997..e7fd374d988c5296644b5abff5851cd37272c120 100644 --- a/src/lib66/exec/ssexec_status.c +++ b/src/lib66/exec/ssexec_status.c @@ -608,8 +608,7 @@ static void info_display_envat(char const *field,resolve_service_t *res) if (NOFIELD) info_display_field_name(field) ; stralloc salink = STRALLOC_ZERO ; - if (!res->environ.envdir) goto empty ; - { + if (res->environ.envdir) { stralloc salink = STRALLOC_ZERO ; char *src = res->sa.s + res->environ.envdir ; @@ -628,15 +627,13 @@ static void info_display_envat(char const *field,resolve_service_t *res) stralloc_free(&salink) ; - goto freed ; + return ; } - empty: if (!bprintf(buffer_1,"%s%s%s\n",log_color->warning,"None",log_color->off)) log_dieusys(LOG_EXIT_SYS,"write to stdout") ; - freed: - stralloc_free(&salink) ; + stralloc_free(&salink) ; } static void info_display_envfile(char const *field,resolve_service_t *res)