summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/randfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index dfec2c7d6b..c96383a431 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -362,5 +362,5 @@ const char *RAND_file_name(char *buf, size_t size)
return NULL;
}
#endif
- return buf;
+ return buf[0] ? buf : NULL;
}