aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-29 18:32:20 -0600
committerRob Landley <rob@landley.net>2007-11-29 18:32:20 -0600
commitce6750ac69a7a80a18db7f0d7a217cbf37c7a04c (patch)
treecbe4209a7f4a3ca80163128bb3e6e6b0257cf5a4 /lib
parentefda21ca931766eed6cfc49d1b2122c53827d9fc (diff)
downloadtoybox-ce6750ac69a7a80a18db7f0d7a217cbf37c7a04c.tar.gz
Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
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.