From ce6750ac69a7a80a18db7f0d7a217cbf37c7a04c Mon Sep 17 00:00:00 2001
From: Rob Landley <rob@landley.net>
Date: Thu, 29 Nov 2007 18:32:20 -0600
Subject: Add sha1sum.  (No -c mode yet.)  Slight tweaks to loopfiles() too.

---
 lib/lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/lib.c b/lib/lib.c
index 6aaf7b00..2fd7fb8e 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -554,7 +554,7 @@ void loopfiles(char **argv, void (*function)(int fd, char *name))
 	int fd;
 
 	// If no arguments, read from stdin.
-	if (!*argv) function(0, *argv);
+	if (!*argv) function(0, "-");
 	else do {
 		// Filename "-" means read from stdin.
 		// Inability to open a file prints a warning, but doesn't exit.
-- 
cgit v1.2.3