Skip to content

Commit 627fee2

Browse files
committed
Chore: adds assertions
1 parent 27b474f commit 627fee2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/common/impl/percent.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ bool ffPercentParseCommandOptions(const char* key, const char* subkey, const cha
261261

262262
bool ffPercentParseJsonObject(yyjson_val* key, yyjson_val* value, FFPercentageModuleConfig* config)
263263
{
264+
assert(key);
265+
264266
if (!unsafe_yyjson_equals_str(key, "percent"))
265267
return false;
266268

src/common/impl/temps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ bool ffTempsParseCommandOptions(const char* key, const char* subkey, const char*
109109

110110
bool ffTempsParseJsonObject(yyjson_val* key, yyjson_val* value, bool* useTemp, FFColorRangeConfig* config)
111111
{
112+
assert(key);
113+
112114
if (!unsafe_yyjson_equals_str(key, "temp"))
113115
return false;
114116

0 commit comments

Comments
 (0)