summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-03-16 19:16:24 +0100
committerTimm Bäder <mail@baedert.org>2017-03-17 18:35:43 +0100
commit242368bdf6244bb3d636bec384233dbb33cba5d9 (patch)
tree97a1115ca1e1eb4f5248951f75245f5e96ecb2c4 /gsk
parent1fe4b1387113ffcd38e1c72a65120ade7ab0955e (diff)
downloadgtk+-242368bdf6244bb3d636bec384233dbb33cba5d9.tar.gz
GtkShaderBuilder Fix copy/paste error in precondition
gtk_shader_builder_add_define should check both define_name and define_value for not-NULL and not-empty, but the second precondition check checks define_name again for not-empty-ness.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gskshaderbuilder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskshaderbuilder.c b/gsk/gskshaderbuilder.c
index 65c779af4f..7085c4158d 100644
--- a/gsk/gskshaderbuilder.c
+++ b/gsk/gskshaderbuilder.c
@@ -147,7 +147,7 @@ gsk_shader_builder_add_define (GskShaderBuilder *builder,
{
g_return_if_fail (GSK_IS_SHADER_BUILDER (builder));
g_return_if_fail (define_name != NULL && *define_name != '\0');
- g_return_if_fail (define_value != NULL && *define_name != '\0');
+ g_return_if_fail (define_value != NULL && *define_value != '\0');
g_ptr_array_add (builder->defines, g_strdup (define_name));
g_ptr_array_add (builder->defines, g_strdup (define_value));