Project

General

Profile

Bug #11419

rmformat: 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:

    rmf_slice.c: In function 'str2sector':
    rmf_slice.c:761:33: error: comparison between pointer and integer [-Werror]
        if ((*s1 != 'B') || (*(++s1) != NULL)) {
                                     ^~
    rmf_slice.c:773:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *s2 = NULL;
          ^
    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 9292c78d437d97bc5dd20bc4d6788a79e0661e02

commit  9292c78d437d97bc5dd20bc4d6788a79e0661e02
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-30T18:22:14.000Z

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

Also available in: Atom PDF