Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vtt.c cue_settings uninitialized variable #52

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

robinlavallee
Copy link

@robinlavallee robinlavallee commented Nov 1, 2018

Error C4703 potentially uninitialized local pointer variable 'cue_settings' used ... libcaption\src\vtt.c 278

Microsoft UWP compiler complains about it even though all code paths seem to initialize it. parse_timestamps always fill it: https://github.com/szatmary/libcaption/pull/52/files#diff-61993fbd8c570847e446e6264b8fc485R236

And when that is called, block_type is set VTT_CUE which is the only path that uses it afterward:
https://github.com/szatmary/libcaption/pull/52/files#diff-61993fbd8c570847e446e6264b8fc485R282

Error    C4703    potentially uninitialized local pointer variable 'cue_settings' used ... libcaption\src\vtt.c    278  

Though all code paths seem to initialize it. `parse_timestamps` always fill it in. And when that is called, `block_type` is set `VTT_CUE` which is the only path that uses it afterward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant