Project

General

Profile

Bug #11285

audio: NULL pointer errors

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    audiorecord.c: In function 'parse_sample_rate':
    audiorecord.c:773:11: error: comparison between pointer and integer [-Werror]
       if (*cp != NULL) {
               ^~
    audioplay.c: In function 'path_open':
    audioplay.c:961:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *cp++ = NULL; /* now pts to next path element */
              ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk about 1 year ago

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

git commit 6473113318cb70acc95fbd8ac12c39566c7b9ee1

commit  6473113318cb70acc95fbd8ac12c39566c7b9ee1
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-05T18:15:22.000Z

    11285 audio: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF