Project

General

Profile

Bug #5799

incorrect use of NULL in symbols_test.c

Added by Garrett D'Amore over 5 years ago. Updated over 5 years ago.

Status:
Feedback
Priority:
Low
Assignee:
Category:
-
Start date:
2015-04-08
Due date:
% Done:

70%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

Gary Mills pointed out this around line 950 in my recently integrated symbols_test program:

static void
addprogstr(char *s)
{
        while (*s != NULL) {
                addprogch(*s);
                s++;
        }
}

The check should be against '\\0' instead of NULL.


Files

symbols_test.diff (348 Bytes) symbols_test.diff Gary Mills, 2015-04-08 04:01 PM

History

#1

Updated by Gary Mills over 5 years ago

My fix is attached.

Also available in: Atom PDF