summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/encrypt/encrypt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/encrypt/encrypt.c b/usr.bin/encrypt/encrypt.c
index d5aa4d3c625..67221a4dae2 100644
--- a/usr.bin/encrypt/encrypt.c
+++ b/usr.bin/encrypt/encrypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: encrypt.c,v 1.23 2006/05/27 23:42:08 moritz Exp $ */
+/* $OpenBSD: encrypt.c,v 1.24 2006/11/02 18:02:16 ray Exp $ */
/*
* Copyright (c) 1996, Jason Downs. All rights reserved.
@@ -68,6 +68,9 @@ trim(char *line)
{
char *ptr;
+ if (line[0] == '\0')
+ return (line);
+
for (ptr = &line[strlen(line)-1]; ptr > line; ptr--) {
if (!isspace(*ptr))
break;