Browse Source

Fix bug where fname was not initialized and caused the creation of files with garbage names, @deckersu++

pull/139/head
Jonathan "Duke" Leto 6 years ago
parent
commit
e4ade6e1f5
  1. 4
      src/komodo_validation011.h

4
src/komodo_validation011.h

@ -1002,9 +1002,9 @@ void komodo_notarized_update(int32_t nHeight,int32_t notarized_height,uint256 no
//decode_hex(NOTARY_PUBKEY33,33,(char *)NOTARY_PUBKEY.c_str());
pthread_mutex_init(&komodo_mutex,NULL);
//#ifdef _WIN32
// sprintf(fname,"%s\\notarizations",GetDefaultDataDir().string().c_str());
sprintf(fname,"%s\\notarizations",GetDefaultDataDir().string().c_str());
//#else
// sprintf(fname,"%s/notarizations",GetDefaultDataDir().string().c_str());
sprintf(fname,"%s/notarizations",GetDefaultDataDir().string().c_str());
//#endif
// printf("fname.(%s)\n",fname);
if ( (fp= fopen(fname,"rb+")) == 0 )

Loading…
Cancel
Save