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) {
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);