[sound-juicer] Don't mark file_pattern and path_pattern as const
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Don't mark file_pattern and path_pattern as const
- Date: Fri, 27 Apr 2012 12:24:34 +0000 (UTC)
commit 5d1bc66187d51acfd78f67a4482af047db1178b8
Author: Christophe Fergeau <cfergeau redhat com>
Date: Fri Apr 20 21:20:23 2012 +0200
Don't mark file_pattern and path_pattern as const
They are dynamically allocated, and can be changed during
sound-juicer lifetime, so they are not const strings
https://bugzilla.gnome.org/show_bug.cgi?id=674489
src/sj-main.c | 2 +-
src/sound-juicer.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index 704809c..3695a9a 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -87,7 +87,7 @@ GtkCellRenderer *toggle_renderer, *title_renderer, *artist_renderer;
GtkWidget *current_message_area;
-const char *path_pattern, *file_pattern;
+char *path_pattern, *file_pattern;
GFile *base_uri;
BraseroDrive *drive = NULL;
gboolean strip_chars;
diff --git a/src/sound-juicer.h b/src/sound-juicer.h
index 3568de7..110f25c 100644
--- a/src/sound-juicer.h
+++ b/src/sound-juicer.h
@@ -102,12 +102,12 @@ extern GFile *base_uri;
/**
* The pattern to expand when naming folders
*/
-extern const char *path_pattern;
+extern char *path_pattern;
/**
* The pattern to expand when naming files
*/
-extern const char *file_pattern;
+extern char *file_pattern;
/**
* If file names should be shell-friendly (i.e no [ /&*?\] characters
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]