mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -88,7 +88,7 @@ int wgetnstr ( WINDOW *win, char *str, int n ) {
|
||||
int c;
|
||||
|
||||
if ( n == 0 ) {
|
||||
str = '\0';
|
||||
*str = '\0';
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user