diff options
| author | login000 <34250284+login000@users.noreply.github.com> | 2019-07-15 21:03:33 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 21:03:33 +1000 |
| commit | 84058f240af77f53c490e3deb6de931f532882ef (patch) | |
| tree | 958e66eb2b61b6ff400bbd1a2697d655cba14f4d | |
| parent | 6a7afee933ca2edf6a1ba213300afbb66303a57e (diff) | |
| download | tcoin-84058f240af77f53c490e3deb6de931f532882ef.tar.gz | |
Removed redundant code in pcoin.cpp
pcoin.cpp had redundant code in 'int main()', where user_amount was redeclared (and thus became a local variable that shadowed the global version inside 'int main()' (!). Fixed by removing the redeclared, redundant line.
| -rw-r--r-- | pcoin.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1607,8 +1607,6 @@ int main(int argc, char *argv[]) srand((long int)(std::time(NULL)) + strtol_fast(exec(BIN_ECHO_CMD).c_str())); - long long int user_amount = get_file_value(get_username().c_str()); - long long int total_amount = base_amount + user_amount; if(argc < 2) |