projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uclient-http: only invoke data_sent callback if it is provided
[project/uclient.git]
/
uclient-http.c
diff --git
a/uclient-http.c
b/uclient-http.c
index 4633956e63519e637749e9a82efb195f34eb6a4d..1569cda34aa6c3e4167fac4f38137c8da6d4ee90 100644
(file)
--- a/
uclient-http.c
+++ b/
uclient-http.c
@@
-657,7
+657,9
@@
static void __uclient_notify_read(struct uclient_http *uh)
static void __uclient_notify_write(struct uclient_http *uh)
{
struct uclient *uc = &uh->uc;
- uc->cb->data_sent(uc);
+
+ if (uc->cb->data_sent)
+ uc->cb->data_sent(uc);
}
static void uclient_notify_read(struct ustream *us, int bytes)