[BACK]Return to patch-gnats_mail.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / gnats / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / gnats / patches / patch-gnats_mail.c (download)

Revision 1.1, Sat Dec 21 23:31:23 2019 UTC (7 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD

Deref a pointer when checking for empty strings. Bump revision.

$NetBSD: patch-gnats_mail.c,v 1.1 2019/12/21 23:31:23 joerg Exp $

--- gnats/mail.c.orig	2019-12-21 22:24:31.365425550 +0000
+++ gnats/mail.c
@@ -67,7 +67,7 @@ get_responsible_address (const DatabaseI
   if (res != NULL)
     {
       if (res->admFields[ResponsibleAdmAlias] == NULL ||
-	  res->admFields[ResponsibleAdmAlias] == '\0')
+	  res->admFields[ResponsibleAdmAlias][0] == '\0')
 	{
 	  if (res->admFields[ResponsibleAdmAlias] != NULL)
 	    {