Skip to content

Commit

Permalink
[httpd] Fixup commit 5d7e3dc in case NULL isn't zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Oct 17, 2024
1 parent 5d7e3dc commit 750f83b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,9 @@ stream_new(struct media_file_info *mfi, struct httpd_request *hreq, event_callba

event_active(st->ev, 0, 0);

st->no_register_playback = httpd_query_value_find(hreq->query, "no_register_playback");
if (httpd_query_value_find(hreq->query, "no_register_playback"))
st->no_register_playback = true;

st->id = mfi->id;
st->hreq = hreq;
return st;
Expand Down

0 comments on commit 750f83b

Please sign in to comment.