Project

General

Profile

Actions

Bug #5947

closed

NULL is not a character in asm10k.c

Added by Richard PALO almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
driver - device drivers
Start date:
2015-05-23
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

This simple patch is self-explanatory:

diff --git a/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/asm10k.c b/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/asm10k.c
index 0a4ef05..af0e0b1 100644
--- a/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/asm10k.c
+++ b/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/asm10k.c
@@ -214,7 +214,7 @@ getaline(FILE *input, char **tokens)

                        /* strip off any C++ style comments that CPP missed */
                        if ((s = strstr(line, "//")) != NULL) {
-                               *s = NULL;
+                               *s = '\0';
                        }
                        stmt = strtok_r(line, ";\n", &lasts);
                } else {

Actions #1

Updated by Electric Monk almost 7 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit bb2183e0683124f79bf4b91cf4d48201e752109e

commit  bb2183e0683124f79bf4b91cf4d48201e752109e
Author: Richard PALO <richard@NetBSD.org>
Date:   2015-05-26T13:33:05.000Z

    5947 NULL is not a character in asm10k.c
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF