Skip to content

Commit

Permalink
11431 sort: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Aug 6, 2019
1 parent 213b050 commit 987bce4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions usr/src/cmd/sort/common/utility.c
Expand Up @@ -24,8 +24,6 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"

#include "utility.h"

#include "initialize.h"
Expand Down Expand Up @@ -556,7 +554,7 @@ wxwrite(int fd, wchar_t *ptr)
size_t req_bufsize;

if (ptr == NULL)
return (cxwrite(NULL, 0, 1));
return (cxwrite(fd, NULL, 0));

if (convert_buffer == NULL)
convert_buffer = safe_realloc(NULL, convert_bufsize);
Expand Down

0 comments on commit 987bce4

Please sign in to comment.