Skip to content

Commit 5489287

Browse files
committed
Fix uninit var.
1 parent d6fc46d commit 5489287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/media/media.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ void ctr_internal_media_render_image(MediaIMG* m, SDL_Rect r, SDL_Rect s, MediaI
11371137
}
11381138

11391139
void ctr_internal_media_image_calculate_motion(MediaIMG* m) {
1140-
MediaIMG* player;
1140+
MediaIMG* player = NULL;
11411141
// keep a constant physics speed by calculating the timediff
11421142
double delta_in_seconds = ((CtrMediaTicks2 - CtrMediaTicks1) / 1000.0f );
11431143
double dt = 60 * delta_in_seconds;

0 commit comments

Comments
 (0)