Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d8c6fe0b
Commit
d8c6fe0b
authored
Nov 03, 2015
by
Terry Ellison
Browse files
Merge pull request #718 from karrots/mqtt_lwt_679
Update mqtt.c fix for #679
parents
95e2bbb0
e2dd98ba
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
d8c6fe0b
...
@@ -1334,7 +1334,7 @@ static int mqtt_socket_lwt( lua_State* L )
...
@@ -1334,7 +1334,7 @@ static int mqtt_socket_lwt( lua_State* L )
{
{
return
luaL_error
(
L
,
"need lwt message"
);
return
luaL_error
(
L
,
"need lwt message"
);
}
}
stack
++
;
if
(
mud
->
connect_info
.
will_topic
){
// free the previous one if there is any
if
(
mud
->
connect_info
.
will_topic
){
// free the previous one if there is any
c_free
(
mud
->
connect_info
.
will_topic
);
c_free
(
mud
->
connect_info
.
will_topic
);
mud
->
connect_info
.
will_topic
=
NULL
;
mud
->
connect_info
.
will_topic
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment