Browse Source

fix: cppcheck ignore two false positives on uninitvar

travis-debug
Michael Schmoock 5 years ago
committed by Rusty Russell
parent
commit
6c50185865
  1. 1
      lightningd/peer_htlcs.c
  2. 1
      wallet/wallet.c

1
lightningd/peer_htlcs.c

@ -897,6 +897,7 @@ htlc_accepted_hook_deserialize(const tal_t *ctx,
json_strdup(tmpctx, buffer, resulttok));
}
/* cppcheck-suppress uninitvar - false positive on fatal() above */
return result;
}

1
wallet/wallet.c

@ -3741,6 +3741,7 @@ struct wallet_transaction *wallet_transactions_get(struct wallet *w, const tal_t
else
fatal("Transaction annotations are only available for inputs and outputs. Value %d", loc);
/* cppcheck-suppress uninitvar - false positive on fatal() above */
ann->type = db_column_int(stmt, 8);
if (!db_column_is_null(stmt, 9))
db_column_short_channel_id(stmt, 9, &ann->channel);

Loading…
Cancel
Save