Skip to content

Commit 7e43ab8

Browse files
committed
vcap/decklink: fix CID 470422
fmt cannot be nullptr
1 parent e243777 commit 7e43ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_capture/decklink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ settings_init(struct vidcap_decklink_state *s, char *fmt)
824824
char *tmp;
825825
char *save_ptr = NULL;
826826

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

0 commit comments

Comments
 (0)