changeset 2:5cd0debdb7d8

Fix a typo potentially causing a NULL pointer dereference
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Sat, 04 Feb 2017 21:04:47 +0100
parents 55281f14dc9b
children 1cc98a5677d9
files pwfile.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pwfile.c	Fri Feb 03 16:11:58 2017 +0100
+++ b/pwfile.c	Sat Feb 04 21:04:47 2017 +0100
@@ -86,7 +86,7 @@
 	group1 = (group_field1 != NULL) ?  pws3_field_get_text(group_field1) :
 	    "";
 	group_field2 = pws3_record_get_field(record2, PWS3_RECORD_FIELD_GROUP);
-	group2 = (group_field1 != NULL) ?  pws3_field_get_text(group_field2) :
+	group2 = (group_field2 != NULL) ?  pws3_field_get_text(group_field2) :
 	    "";
 	retval = strcmp(group1, group2);
 	if (retval != 0) {