[vlc-commits] macosx: fix uninitialized block argument
Felix Paul Kühne
git at videolan.org
Sat Jun 9 17:44:11 CEST 2018
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun 9 16:15:29 2018 +0200| [120f324ba9203165f367930395f4c9a30a13256a] | committer: Felix Paul Kühne
macosx: fix uninitialized block argument
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=120f324ba9203165f367930395f4c9a30a13256a
---
modules/gui/macosx/VLCResumeDialogController.h | 3 ++-
modules/gui/macosx/VLCResumeDialogController.m | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/VLCResumeDialogController.h b/modules/gui/macosx/VLCResumeDialogController.h
index cad5cdb49a..1c96e9caea 100644
--- a/modules/gui/macosx/VLCResumeDialogController.h
+++ b/modules/gui/macosx/VLCResumeDialogController.h
@@ -28,7 +28,8 @@
enum ResumeResult {
RESUME_RESTART,
- RESUME_NOW
+ RESUME_NOW,
+ RESUME_FAIL
};
typedef void(^CompletionBlock)(enum ResumeResult);
diff --git a/modules/gui/macosx/VLCResumeDialogController.m b/modules/gui/macosx/VLCResumeDialogController.m
index a28dd302e7..23882dfbf7 100644
--- a/modules/gui/macosx/VLCResumeDialogController.m
+++ b/modules/gui/macosx/VLCResumeDialogController.m
@@ -99,7 +99,7 @@
- (IBAction)buttonClicked:(id)sender
{
- enum ResumeResult resumeResult;
+ enum ResumeResult resumeResult = RESUME_FAIL;
if (sender == o_restart_btn)
resumeResult = RESUME_RESTART;
More information about the vlc-commits
mailing list