Project

General

Profile

Bug #11114

libsecdb: NULL pointer errors

Added by Toomas Soome 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    ../common/secdb.c: In function '_argv_to_csl':
    ../common/secdb.c:342:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       newstr[len-1] = NULL;
                     ^
    ../common/chkauthattr.c: In function '_enum_common_p':
    ../common/chkauthattr.c:102:58: error: comparison between pointer and integer [-Werror]
      if (*pcnt > 0 && strcmp(profs[*pcnt - 1], PROFILE_STOP) == NULL)
                                                              ^~
    ../common/chkauthattr.c: In function '_auth_match_noun':
    ../common/chkauthattr.c:336:39: error: comparison between pointer and integer [-Werror]
        if (strncmp(grant + 1, "grant", 5) != NULL)
                                           ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 4 months ago

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

git commit 281eb3a97ad0e298603325ba7c56d0222aaa5ac3

commit  281eb3a97ad0e298603325ba7c56d0222aaa5ac3
Author: Toomas Soome <tsoome@me.com>
Date:   2019-06-18T18:39:52.000Z

    11114 libsecdb: NULL pointer errors
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF