[Xfce4-commits] [apps/xfce4-screenshooter] 01/01: Fix crash when uploading to zimagez, followup to 6de6b7e (#11879)
noreply at xfce.org
noreply at xfce.org
Sun Jun 12 22:26:04 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit 4569b715afc3b664bfc13b3ea77f493ef75f1c36
Author: Maarten <devnetraam at gmail.com>
Date: Sun Jun 12 22:25:03 2016 +0200
Fix crash when uploading to zimagez, followup to 6de6b7e (#11879)
---
lib/screenshooter-zimagez.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/screenshooter-zimagez.c b/lib/screenshooter-zimagez.c
index edf363d..ba75f76 100644
--- a/lib/screenshooter-zimagez.c
+++ b/lib/screenshooter-zimagez.c
@@ -215,9 +215,9 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
g_return_val_if_fail (SCREENSHOOTER_IS_JOB (job), FALSE);
g_return_val_if_fail (param_values != NULL, FALSE);
g_return_val_if_fail (param_values->len == 3, FALSE);
- g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 0)), FALSE);
- g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 1)), FALSE);
- g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 2)), FALSE);
+ g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 0))), FALSE);
+ g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 1))), FALSE);
+ g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 2))), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_object_set_data (G_OBJECT (job), "jobtype", "zimagez");
@@ -230,7 +230,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
}
/* Get the last user */
- last_user = g_value_get_string (&g_array_index (param_values, GValue, 1));
+ last_user = g_value_get_string (g_array_index (param_values, GValue*, 1));
user = g_strdup (last_user);
if (user == NULL)
@@ -246,7 +246,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
g_strdup (user), (GDestroyNotify) g_free);
/* Get the default title */
- title = g_strdup (g_value_get_string (&g_array_index (param_values, GValue, 2)));
+ title = g_strdup (g_value_get_string (g_array_index (param_values, GValue*, 2)));
if (title == NULL)
title = g_strdup ("");
@@ -257,7 +257,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
}
/* Get the path of the image that is to be uploaded */
- image_path = g_value_get_string (&g_array_index (param_values, GValue, 0));
+ image_path = g_value_get_string (g_array_index (param_values, GValue*, 0));
/* Start the user soup session */
exo_job_info_message (EXO_JOB (job), _("Initialize the connection..."));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list