[gnome-settings-daemon/wip/benzea/cleanups-and-small-fixes] print-notifications: Drop invalid const qualifier from string
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/benzea/cleanups-and-small-fixes] print-notifications: Drop invalid const qualifier from string
- Date: Wed, 20 Feb 2019 17:47:11 +0000 (UTC)
commit 3a12b2d55288e69e5d19f91cc2ee2e25d0854fe1
Author: Benjamin Berg <bberg redhat com>
Date: Wed Feb 20 17:46:48 2019 +0100
print-notifications: Drop invalid const qualifier from string
The string is dynamically allocated, it shouldn't have a const
specifier.
plugins/print-notifications/gsd-print-notifications-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c
b/plugins/print-notifications/gsd-print-notifications-manager.c
index f8dc77f8..53aaccff 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -1071,7 +1071,7 @@ process_new_notifications (gpointer user_data)
const gchar *printer_name = NULL;
const gchar *notify_text = NULL;
const gchar *notify_printer_uri = NULL;
- const gchar *job_state_reasons = NULL;
+ gchar *job_state_reasons = NULL;
const gchar *job_name = NULL;
const char *attr_name;
gboolean printer_is_accepting_jobs = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]