summaryrefslogtreecommitdiff
path: root/libgphoto2/gphoto2-file.c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-12-29 17:01:35 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-12-29 17:01:35 +0000
commit7181602ca02bb1d3a6a6944023e84446fab904d1 (patch)
treed4f2a23e245a616c11aa166061b94143a91fa517 /libgphoto2/gphoto2-file.c
parent6545cafe3bff354814e67578626f0d988a16fa97 (diff)
downloadlibgphoto2-7181602ca02bb1d3a6a6944023e84446fab904d1.tar.gz
missing return GP_OK; added.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9775 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/gphoto2-file.c')
-rw-r--r--libgphoto2/gphoto2-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c
index b1dec9880..da11f2eff 100644
--- a/libgphoto2/gphoto2-file.c
+++ b/libgphoto2/gphoto2-file.c
@@ -130,7 +130,7 @@ gp_file_new_from_fd (CameraFile **file, int fd)
int gp_file_free (CameraFile *file)
{
CHECK_NULL (file);
-
+
CHECK_RESULT (gp_file_clean (file));
if (file->accesstype == GP_FILE_ACCESSTYPE_FD)
@@ -775,6 +775,7 @@ gp_file_copy (CameraFile *destination, CameraFile *source)
return GP_ERROR_IO_WRITE;
curwritten += res;
}
+ return GP_OK;
}
gp_log (GP_LOG_ERROR, "gphoto2-file", "Unhandled cases in gp_copy_file. Bad!");
return GP_ERROR;