Skip to content
Snippets Groups Projects
Commit 060e2358 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

be smart framboise

parent ea8a156e
No related branches found
No related tags found
No related merge requests found
...@@ -608,8 +608,7 @@ static void info_display_envat(char const *field,resolve_service_t *res) ...@@ -608,8 +608,7 @@ static void info_display_envat(char const *field,resolve_service_t *res)
if (NOFIELD) info_display_field_name(field) ; if (NOFIELD) info_display_field_name(field) ;
stralloc salink = STRALLOC_ZERO ; stralloc salink = STRALLOC_ZERO ;
if (!res->environ.envdir) goto empty ; if (res->environ.envdir) {
{
stralloc salink = STRALLOC_ZERO ; stralloc salink = STRALLOC_ZERO ;
char *src = res->sa.s + res->environ.envdir ; char *src = res->sa.s + res->environ.envdir ;
...@@ -628,15 +627,13 @@ static void info_display_envat(char const *field,resolve_service_t *res) ...@@ -628,15 +627,13 @@ static void info_display_envat(char const *field,resolve_service_t *res)
stralloc_free(&salink) ; stralloc_free(&salink) ;
goto freed ; return ;
} }
empty:
if (!bprintf(buffer_1,"%s%s%s\n",log_color->warning,"None",log_color->off)) if (!bprintf(buffer_1,"%s%s%s\n",log_color->warning,"None",log_color->off))
log_dieusys(LOG_EXIT_SYS,"write to stdout") ; 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) static void info_display_envfile(char const *field,resolve_service_t *res)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment