From 2ede3df69933e0eb9066cb59c35482fdb32aae3f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 9 May 2007 05:52:46 +0000 Subject: [PATCH] removed 1 superflous null ptr check git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10145 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/sierra/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/sierra/library.c b/camlibs/sierra/library.c index 68f8b4799..9a0f5bdde 100644 --- a/camlibs/sierra/library.c +++ b/camlibs/sierra/library.c @@ -98,7 +98,7 @@ int sierra_change_folder (Camera *camera, const char *folder, GPContext *context /* We will later need a path ending with '/'. */ memset (target, 0, sizeof (target)); - if (folder && folder[0]) + if (folder[0]) strncpy (target, folder, sizeof (target) - 1); if (target[strlen (target) - 1] != '/') strcat (target, "/");