We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e89a3 commit f7cf3cdCopy full SHA for f7cf3cd
md5.cpp
@@ -245,6 +245,9 @@ static char hb2hex(unsigned char hb) {
245
246
string md5file(const char* filename){
247
std::FILE* file = std::fopen(filename, "rb");
248
+ if (!file) {
249
+ return "";
250
+ }
251
string res = md5file(file);
252
std::fclose(file);
253
return res;
0 commit comments