1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Fix uninitialized variable bug.

This commit is contained in:
Bruno Haible
2002-12-02 12:58:51 +00:00
parent bd03d0bce8
commit e7c9757f68
2 changed files with 6 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ void KeywordExt::init_selchars (int *occurrences)
}
/* Didn't get any hits and user doesn't want to consider the
keylength, so there are essentially no usable hash positions! */
if (ptr == _selchars && option[NOLENGTH])
keylength, so there are essentially no usable hash positions! */
if (ptr == key_set && option[NOLENGTH])
{
fprintf (stderr, "Can't hash keyword %.*s with chosen key positions.\n",
_allchars_length, _allchars);