Skip to content

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