summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2023-05-05 19:58:15 +0000
committerPascal Terjan <pterjan@gmail.com>2023-05-05 20:11:13 +0000
commit439e249b3e8696c8eac136a846d5d5bdffc071a1 (patch)
tree9c8ec943233a60661d210ff8e7284640f4a95221 /mdk-stage1
parent1019fe7a475095637bb26410ff4839215e4eaac7 (diff)
downloaddrakx-439e249b3e8696c8eac136a846d5d5bdffc071a1.tar
drakx-439e249b3e8696c8eac136a846d5d5bdffc071a1.tar.gz
drakx-439e249b3e8696c8eac136a846d5d5bdffc071a1.tar.bz2
drakx-439e249b3e8696c8eac136a846d5d5bdffc071a1.tar.xz
drakx-439e249b3e8696c8eac136a846d5d5bdffc071a1.zip
Fix a build failure with -Werror=address
dhcp.c: In function ‘parse_reply’: dhcp.c:216:13: error: the comparison will always evaluate as ‘true’ for the address of ‘bootfile’ will never be NULL [-Werror=address] 216 | if (breq->bootfile && strlen(breq->bootfile) > 0) { | ^~~~ dhcp.c:102:14: note: ‘bootfile’ declared here 102 | char bootfile[128]; | ^~~~~~~~ cc1: all warnings being treated as errors
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c
index 77f8f356b..678031e85 100644
--- a/mdk-stage1/dhcp.c
+++ b/mdk-stage1/dhcp.c
@@ -213,7 +213,7 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int
unsigned char * chptr;
unsigned char option, length;
- if (breq->bootfile && strlen(breq->bootfile) > 0) {
+ if (strlen(breq->bootfile) > 0) {
if (IS_NETAUTO)
add_to_env("KICKSTART", breq->bootfile);
else