lib/dload.c: Check for dlcb == NULL earlier
commitb9263fb4e1900457c9d5f3cc9e05896653130867
authorDave Reisner <d@falconindy.com>
Thu, 17 Mar 2011 13:01:30 +0000 (17 09:01 -0400)
committerDan McGee <dan@archlinux.org>
Wed, 23 Mar 2011 16:04:42 +0000 (23 11:04 -0500)
tree483b3751513cb11fc9150cf4f0d28f86e4847fdd
parent47e41b2023f0d13f213b771db96297968fe0f280
lib/dload.c: Check for dlcb == NULL earlier

Our curl callback does a whole lot of work for nothing if the front end
never defined a callback to receive the data we'd calculate for it.

Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c