mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
fix: cppcheck ignore two false positives on uninitvar
This commit is contained in:
committed by
Rusty Russell
parent
d3ece69a1b
commit
6c50185865
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user