From 2b93c2856fcfa04d14abfb07902e18d9d6473570 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 10 Jan 2009 23:12:40 +0000 Subject: disable more info.name handling git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11684 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/sq905/library.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'camlibs/sq905') diff --git a/camlibs/sq905/library.c b/camlibs/sq905/library.c index 7fc3e9158..b4291b3cb 100644 --- a/camlibs/sq905/library.c +++ b/camlibs/sq905/library.c @@ -223,18 +223,8 @@ static int get_info_func (CameraFilesystem *fs, const char *folder, const char *file, CameraFileInfo *info, void *data, GPContext *context) { - char path[1024]; - - if (strlen (folder) == 1) - snprintf (path, sizeof (path), "/%s", file); - else - snprintf (path, sizeof (path), "%s/%s", folder, file); - - info->preview.fields = GP_FILE_INFO_NONE; - info->file.fields = GP_FILE_INFO_NAME; - - strcpy (info->file.name, file); - + memset (info, 0, sizeof(CameraFileInfo)); + /* FIXME: fill in some stuff? */ return (GP_OK); } -- cgit v1.2.1