Project

General

Profile

Bug #10746

telmod: NULL pointer errors

Added by Toomas Soome 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    ../../common/io/telmod.c: In function 'rcv_parse':
    ../../common/io/telmod.c:968:46: error: comparison between pointer and integer [-Werror]
        if ((*mp->b_rptr == '\n') || (*mp->b_rptr == NULL)) {
                                                  ^~
    ../../common/io/telmod.c:1085:17: error: comparison between pointer and integer [-Werror]
             (tmp[1] == NULL))) {
                     ^~
    ../../common/io/telmod.c: In function 'snd_parse':
    ../../common/io/telmod.c:1157:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
         *tmp1++ = NULL;
                 ^
    ../../common/io/telmod.c:1176:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
          *tmp1++ = NULL;
                  ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 7 months ago

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

git commit c86160f040741e2e6312538e07eaa97b5053c172

commit  c86160f040741e2e6312538e07eaa97b5053c172
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-19T22:21:25.000Z

    10746 telmod: NULL pointer errors
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF