Project

General

Profile

Bug #11320

diskinfo: NULL pointer errors

Added by Toomas Soome 3 months ago. Updated 3 months 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:

    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

History

#1

Updated by Electric Monk 3 months ago

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

git commit eeec397864011c5afca614fe1353754d7a9d852f

commit  eeec397864011c5afca614fe1353754d7a9d852f
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-06T14:36:22.000Z

    11320 diskinfo: NULL pointer errors
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF