Skip to content

Commit

Permalink
vcap/decklink: fix CID 470422
Browse files Browse the repository at this point in the history
fmt cannot be nullptr
  • Loading branch information
MartinPulec committed Nov 26, 2024
1 parent e243777 commit 7e43ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ settings_init(struct vidcap_decklink_state *s, char *fmt)
char *tmp;
char *save_ptr = NULL;

if (!fmt || (tmp = strtok_r(fmt, ":", &save_ptr)) == NULL) {
if ((tmp = strtok_r(fmt, ":", &save_ptr)) == NULL) {
MSG(INFO, "Auto-choosen device 0.\n");
return true;
}
Expand Down

0 comments on commit 7e43ab8

Please sign in to comment.