Skip to content

Commit 0acee6e

Browse files
committed
scrobbler2: Avoid crashing if curl_easy_escape() returns NULL. Closes: #1008.
1 parent 1cc8d67 commit 0acee6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scrobbler2/scrobbler_communication.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static String create_message_to_lastfm (const char * method_name, int n_args, ..
9898
buf.insert (-1, "&");
9999
buf.insert (-1, name);
100100
buf.insert (-1, "=");
101-
buf.insert (-1, esc);
101+
buf.insert (-1, esc ? esc : "");
102102
curl_free (esc);
103103
}
104104

0 commit comments

Comments
 (0)