X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fname_match.c;h=a4433bc97e96d9b7b728f12f6d340a953a06ed9b;hp=fccd26491e44d611d603d26e7d3bc546d5f2795e;hb=938680fa3bc29d2a086031a2f648dfd6cadcb51e;hpb=c002077d39fa24ddfe33793eb22942d9518da6fd diff --git a/ncurses/tinfo/name_match.c b/ncurses/tinfo/name_match.c index fccd2649..a4433bc9 100644 --- a/ncurses/tinfo/name_match.c +++ b/ncurses/tinfo/name_match.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1999-2008,2011 Free Software Foundation, Inc. * + * Copyright (c) 1999-2011,2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -33,7 +33,7 @@ #include #include -MODULE_ID("$Id: name_match.c,v 1.21 2011/08/13 20:23:12 tom Exp $") +MODULE_ID("$Id: name_match.c,v 1.22 2012/11/18 02:10:17 tom Exp $") #define FirstName _nc_globals.first_name @@ -62,8 +62,9 @@ _nc_first_name(const char *const sp) #if NO_LEAKS if (sp == 0) { - if (FirstName != 0) + if (FirstName != 0) { FreeAndNull(FirstName); + } } else #endif {