Project

General

Profile

Bug #11450

zoneadm: NULL pointer errors

Added by Toomas Soome about 1 month ago. Updated 25 days ago.

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

100%

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

History

#1

Updated by Electric Monk 25 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 4535e8bf8bd491fa8e4cdbe5019f9f59988c2b3e

commit  4535e8bf8bd491fa8e4cdbe5019f9f59988c2b3e
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-31T06:38:32.000Z

    11450 zoneadm: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF