Project

General

Profile

Bug #11450

zoneadm: NULL pointer errors

Added by Toomas Soome 4 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    zoneadm.c: In function 'cleanup_zonepath':
    zoneadm.c:3877:16: error: comparison between pointer and integer [-Werror]
      if (*zonepath == NULL || strcmp(zonepath, "/") == 0) {
                    ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF