* Created IsEmptyStr define to be used rather then using some weird strlen constructs
[citadel.git] / webcit / netconf.c
index 7479fb2b3a360ca527d07e46ef9403c69cf0cd0a..bfb9388708df9a24f15290e24daff3974ed741e6 100644 (file)
@@ -18,7 +18,7 @@ void edit_node(void) {
        char cnode[SIZ];
        FILE *fp;
 
-       if (strlen(bstr("ok_button")) > 0) {
+       if (!IsEmptyStr(bstr("ok_button"))) {
                strcpy(node, bstr("node") );
                fp = tmpfile();
                if (fp != NULL) {
@@ -300,7 +300,7 @@ void add_node(void)
 
        strcpy(node, bstr("node"));
 
-       if (strlen(bstr("add_button")) > 0)  {
+       if (!IsEmptyStr(bstr("add_button")))  {
                sprintf(buf, "NSET addnode|%s", node);
                serv_puts(buf);
                serv_getln(buf, sizeof buf);