From 24cc4b49d60c81c5ef3a64d9807d5d46fcffd7b3 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Tue, 28 Feb 2012 20:54:06 +0100 Subject: [PATCH] recorder: Fix compiler warnings Fix some compiler warnings introduced in e322d988 --- src/shell-recorder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell-recorder.c b/src/shell-recorder.c index 9ac72d668..85523f0d9 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -1163,7 +1163,7 @@ get_absolute_path (char *maybe_relative) path = g_strdup (maybe_relative); else { - char *video_dir = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS); + const char *video_dir = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS); path = g_build_filename (video_dir, maybe_relative, NULL); } @@ -1182,7 +1182,7 @@ recorder_open_outfile (ShellRecorder *recorder) const char *pattern; int flags; int outfile = -1; - char *path; + char *path = NULL; recorder->count++;