11124 libkvm: NULL pointer errors

Review Request #1909 - Created June 1, 2019 and updated

Information
Toomas Soome
illumos-gate
11124
d369eed...
Reviewers
general
../common/kvm_getcmd.c: In function 'kvm_getcmd':
../common/kvm_getcmd.c:284:16: error: comparison between pointer and integer [-Werror]
  if (u->u_argv == NULL || u->u_envp == NULL)
                ^~
../common/kvm_getcmd.c:284:37: error: comparison between pointer and integer [-Werror]
  if (u->u_argv == NULL || u->u_envp == NULL)
                                     ^~
cc1: all warnings being treated as errors

  

Issues

  • 1
  • 0
  • 0
  • 1
Description From Last Updated
as before these should be casts to uintptr_t not 0 John Levon John Levon
John Levon

   
usr/src/lib/libkvm/common/kvm_getcmd.c (Diff revision 1)
 
 

as before these should be casts to uintptr_t not 0

Loading...