projects/pwm

changeset 2:5cd0debdb7d8

Fix a typo potentially causing a NULL pointer dereference
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Sat Feb 04 21:04:47 2017 +0100 (2017-02-04)
parents 55281f14dc9b
children 1cc98a5677d9
files pwfile.c
line diff
     1.1 --- a/pwfile.c	Fri Feb 03 16:11:58 2017 +0100
     1.2 +++ b/pwfile.c	Sat Feb 04 21:04:47 2017 +0100
     1.3 @@ -86,7 +86,7 @@
     1.4  	group1 = (group_field1 != NULL) ?  pws3_field_get_text(group_field1) :
     1.5  	    "";
     1.6  	group_field2 = pws3_record_get_field(record2, PWS3_RECORD_FIELD_GROUP);
     1.7 -	group2 = (group_field1 != NULL) ?  pws3_field_get_text(group_field2) :
     1.8 +	group2 = (group_field2 != NULL) ?  pws3_field_get_text(group_field2) :
     1.9  	    "";
    1.10  	retval = strcmp(group1, group2);
    1.11  	if (retval != 0) {