Diff of /src/socket.c [db140b] .. [0998f1]  Maximize  Restore

  Switch to side-by-side view

--- a/src/socket.c
+++ b/src/socket.c
@@ -624,7 +624,7 @@
 		else if (strncmp(buf, "doclist", 7) == 0)
 		{
 			gchar *doc_list = build_document_list();
-			if (NZV(doc_list))
+			if (!EMPTY(doc_list))
 				socket_fd_write_all(sock, doc_list, strlen(doc_list));
 			else
 				/* send ETX (end-of-text) in case we have no open files, we must send anything