Project

General

Profile

Bug #11298

consadm: NULL pointer errors

Added by Toomas Soome 4 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:

    ../consadm.c: In function 'addtolist':
    ../consadm.c:397:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        buf[len - 1] = NULL; /* Clear carriage return */
                     ^
    ../consadm.c: In function 'removefromlist':
    ../consadm.c:460:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       value[len - 1] = NULL; /* Clear carriage return */
                      ^

History

#1

Updated by Electric Monk 3 months ago

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

git commit d95bfcb7b300250d00a64080d6da927b04ac4697

commit  d95bfcb7b300250d00a64080d6da927b04ac4697
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-06T21:34:54.000Z

    11298 consadm: NULL pointer errors
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF