Skip to content

Commit

Permalink
Merge pull request #243 from reticulatedpines/master
Browse files Browse the repository at this point in the history
Suppress uninit data usage warning in strcpy()
  • Loading branch information
masc4ii committed Jun 24, 2022
2 parents faddb3e + 15a9ba2 commit c9a069f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlv/video_mlv.c
Expand Up @@ -500,7 +500,7 @@ void getMlvProcessedFrame8(mlvObject_t * video, uint64_t frameIndex, uint8_t * o
mlvObject_t * initMlvObjectWithClip(char * mlvPath, int preview, int * err, char * error_message)
{
mlvObject_t * video = initMlvObject();
char error_message_tmp[256];
char error_message_tmp[256] = {0};
int err_tmp = openMlvClip(video, mlvPath, preview, error_message_tmp);
if (err != NULL) *err = err_tmp;
if (error_message != NULL) strcpy(error_message, error_message_tmp);
Expand Down

0 comments on commit c9a069f

Please sign in to comment.