From 4f4c120e88f0c1ad9c93e081181223a48b8df625 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 28 Apr 2009 16:14:20 +0300 Subject: [PATCH] obexd: Fix uninitialized variable warning --- obexd/src/ftp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/obexd/src/ftp.c b/obexd/src/ftp.c index 3d266499b..b1903eeac 100644 --- a/obexd/src/ftp.c +++ b/obexd/src/ftp.c @@ -282,8 +282,10 @@ void ftp_get(obex_t *obex, obex_object_t *obj) if (os == NULL) return; - if (os->current_folder == NULL) + if (os->current_folder == NULL) { + err = -ENOENT; goto fail; + } err = get_by_type(os, os->type, &size); if (err < 0) { -- 2.47.3