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

66-info: fix null current tree name

parent f577d0ab
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@
#include <s6/s6-supervise.h>//s6_svc_ok
//#include <stdio.h>
#include <stdio.h>
unsigned int VERBOSITY = 1 ;
static stralloc base = STRALLOC_ZERO ;
static stralloc live = STRALLOC_ZERO ;
......@@ -349,12 +349,15 @@ int tree_args(int argc, char const *const *argv)
tree = stralloc_zero ;
char *treename = gaistr(&gatree,i) ;
int cu = 0 ;
if (todisplay)
if (!obstr_equal(treename,argv[0])) continue ;
int enabled = tree_cmd_state(VERBOSITY,"-s",treename) ;
int cu = obstr_equal(treename,currname) ;
if (currname)
cu = obstr_equal(treename,currname) ;
if (!bprintf(buffer_1,"%s%s%s%s%s%s%s\n","[Name:",treename,",Current:",cu ? "yes":"no",",Enabled:",enabled?"yes":"no","]")) goto err ;
......
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