summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-04-28 16:14:20 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-04-28 16:14:20 +0300
commitbb2670bfdf31bfd2baf4c557d48dbd07a7d7a319 (patch)
tree54a47a2d063de034306f3c64abc500986c6da005
parentb664e898ec8885c7b324eeb9fcd1f5ca40c920ff (diff)
downloadobexd-bb2670bfdf31bfd2baf4c557d48dbd07a7d7a319.tar.gz
Fix uninitialized variable warning
-rw-r--r--src/ftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ftp.c b/src/ftp.c
index 3d26649..b1903ee 100644
--- a/src/ftp.c
+++ b/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) {