diff --git a/c_src/tools-util.c b/c_src/tools-util.c
index 1a749858..1d6a2ef1 100644
--- a/c_src/tools-util.c
+++ b/c_src/tools-util.c
@@ -124,10 +124,6 @@ char *read_file_str(int dirfd, const char *path)
 	buf[len] = '\0';
 	if (len && buf[len - 1] == '\n')
 		buf[len - 1] = '\0';
-	if (!strlen(buf)) {
-		free(buf);
-		buf = NULL;
-	}
 
 	close(fd);