aboutsummaryrefslogtreecommitdiff
path: root/crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypt.c b/crypt.c
index f4d3a11..8134793 100644
--- a/crypt.c
+++ b/crypt.c
@@ -13,6 +13,9 @@
*/
int main (int argc, char **argv)
{
+ /* The hash we will produce, hopefully */
+ char *hash = NULL;
+
/* Assume user doesn't want help */
int help = 0;
@@ -44,7 +47,7 @@ int main (int argc, char **argv)
}
/* All seems well, build the hash and print it */
- char *hash = crypt(argv[1], argv[2]);
+ hash = crypt(argv[1], argv[2]);
fprintf(stdout, "%s\n", hash);
exit(EXIT_SUCCESS);
}