summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--slurp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/slurp.c b/slurp.c
index fff8624..7dbf5ed 100644
--- a/slurp.c
+++ b/slurp.c
@@ -24,11 +24,6 @@ slurp(char *filename, char **bufo, off_t *leno)
 		r = errno;
 		goto out;
 	}
-	if (st.st_size == 0) {
-		*bufo = "";
-		*leno = 0;
-		return 0;
-	}
 	*bufo = malloc(st.st_size + 1);
 	if (!*bufo) {
 		r = ENOMEM;