diff options
Diffstat (limited to 'crypt.c')
-rw-r--r-- | crypt.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |