Project

General

Profile

Actions

Bug #11320

closed

diskinfo: NULL pointer errors

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with NULL pointer:

    diskinfo.c: In function 'enumerate_disks':
    diskinfo.c:256:40: error: comparison between pointer and integer [-Werror]
      for (i = 0; media != NULL && media[i] != NULL; i++) {
                                            ^~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF