Skip to content

Commit

Permalink
Fixed Segmentation fault confirmation == NULL
Browse files Browse the repository at this point in the history
causes trouble at atoi
  • Loading branch information
d4ndox committed Apr 18, 2024
1 parent 7b2e395 commit b5b4cf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ int main(int argc, char **argv)
}

monero_wallet[GET_TXID].conf = confirm(&monero_wallet[GET_TXID]);
if (monero_wallet[GET_TXID].conf == NULL) asprintf(&monero_wallet[GET_TXID].conf, "0");

/* release "amount" out of jail */
if (atoi(monero_wallet[GET_TXID].conf) >= confirmation) {
Expand Down

0 comments on commit b5b4cf1

Please sign in to comment.