From b5b4cf1450634a82bdd1c09fdbd314b57a4f80f4 Mon Sep 17 00:00:00 2001 From: d4ndox Date: Thu, 18 Apr 2024 14:55:08 +0200 Subject: [PATCH] Fixed Segmentation fault confirmation == NULL causes trouble at atoi --- mnp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mnp.c b/mnp.c index f5cfb33..c4b58cd 100644 --- a/mnp.c +++ b/mnp.c @@ -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) {