Skip to content

Commit

Permalink
xlog: Fix error found by latest g++ compiler.
Browse files Browse the repository at this point in the history
Looks like a real bug, though not sure how important.

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Sep 8, 2017
1 parent c9c70ce commit 871b7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorp/libxorp/xlog.c
Expand Up @@ -1124,7 +1124,7 @@ xlog_parse_syslog_spec(const char *syslogspec, int *facility, int *priority)

*facility = xfacility;

if (priname != NULL && ++priname != '\0') {
if (priname != NULL && (*(++priname) != '\0')) {
xpriority = -1;
for (i = 0, sc = &prioritynames[0]; sc->c_val != -1; ++sc, ++i) {
if (0 == strcasecmp(sc->c_name, priname)) {
Expand Down

0 comments on commit 871b7b8

Please sign in to comment.