diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-28 16:14:20 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-28 16:14:20 +0300 |
commit | bb2670bfdf31bfd2baf4c557d48dbd07a7d7a319 (patch) | |
tree | 54a47a2d063de034306f3c64abc500986c6da005 | |
parent | b664e898ec8885c7b324eeb9fcd1f5ca40c920ff (diff) | |
download | obexd-bb2670bfdf31bfd2baf4c557d48dbd07a7d7a319.tar.gz |
Fix uninitialized variable warning
-rw-r--r-- | src/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |