Skip to content

Commit 6f07112

Browse files
committed
vdisp/gl: fix CID 481468
a null-pointer dereference if "fullhelp" isn't first option
1 parent ef00373 commit 6f07112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_display/gl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ static void *display_gl_parse_fmt(struct state_gl *s, char *ptr) {
715715

716716
while((tok = strtok_r(ptr, ":", &save_ptr)) != NULL) {
717717
if (strcmp(tok, "help") == 0 || strcmp(tok, "fullhelp") == 0) {
718-
gl_show_help(strcmp(ptr, "fullhelp") == 0);
718+
gl_show_help(strcmp(tok, "fullhelp") == 0);
719719
return INIT_NOERR;
720720
}
721721
if (!strcmp(tok, "d") || !strcmp(tok, "dforce")) {

0 commit comments

Comments
 (0)