about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 23:17:18 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 23:17:18 +0100
commitcbcf476a7c63642d0b520460eb94064dd27b4b97 (patch)
tree894870ba7e7e730c53f702ad8f9dfdde7febec78
parentaf75bc4be67422b7523707ec56db4a9cde59429b (diff)
downloadprofani-tty-cbcf476a7c63642d0b520460eb94064dd27b4b97.tar.gz
Use null check convention in form.c
-rw-r--r--src/xmpp/form.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/form.c b/src/xmpp/form.c
index 02d26ba0..e6213b64 100644
--- a/src/xmpp/form.c
+++ b/src/xmpp/form.c
@@ -211,7 +211,7 @@ form_create(xmpp_stanza_t * const form_stanza)
 
             field->var = _get_attr(field_stanza, "var");
 
-            if (field->type_t != FIELD_HIDDEN && field->var != NULL) {
+            if (field->type_t != FIELD_HIDDEN && field->var) {
                 GString *tag = g_string_new("");
                 g_string_printf(tag, "field%d", tag_num++);
                 g_hash_table_insert(form->var_to_tag, strdup(field->var), strdup(tag->str));