[gnome-shell] recorder: Fix compiler warnings



commit 24cc4b49d60c81c5ef3a64d9807d5d46fcffd7b3
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Tue Feb 28 20:54:06 2012 +0100

    recorder: Fix compiler warnings
    
    Fix some compiler warnings introduced in e322d988

 src/shell-recorder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index 9ac72d6..85523f0 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++;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]