lsflib/src/md5sum.c
changeset 136 d82f65e902d0
parent 121 fef2ccfa7b12
child 158 2cddd4d26139
--- a/lsflib/src/md5sum.c
+++ b/lsflib/src/md5sum.c
@@ -23,15 +23,11 @@
 
     if ((f = fopen (fname, "rb")) == NULL) {
         perror ("FOPEN");
-        value = malloc (1);
-        value = 0;
-        return value;
+        return NULL;
     }
 
     if ((md = EVP_get_digestbyname ("md5")) == NULL) {
-        value = malloc (1);
-        value = 0;
-        return value;
+        return NULL;
     }
 
     EVP_MD_CTX_init (&mdctx);