[Xfce4-commits] [apps/xfce4-screenshooter] 08/10: Fix assert
noreply at xfce.org
noreply at xfce.org
Mon Dec 17 00:04:42 CET 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screenshooter.
commit 5ee3454d5cbd482f1f10457336c9071060e45280
Author: Andre Miranda <andreldm at xfce.org>
Date: Sun Dec 16 01:11:00 2018 -0300
Fix assert
---
lib/screenshooter-imgur-dialog.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/screenshooter-imgur-dialog.c b/lib/screenshooter-imgur-dialog.c
index c3bfc6b..a222d3b 100644
--- a/lib/screenshooter-imgur-dialog.c
+++ b/lib/screenshooter-imgur-dialog.c
@@ -104,6 +104,8 @@ ScreenshooterImgurDialog *
screenshooter_imgur_dialog_new (const gchar *upload_name,
const gchar *delete_hash)
{
+ g_return_val_if_fail (upload_name != NULL, NULL);
+
ScreenshooterImgurDialog *self = g_object_new (SCREENSHOOTER_TYPE_IMGUR_DIALOG, NULL);
self->image_url = g_strdup_printf ("https://imgur.com/%s.png", upload_name);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list