[PATCH Libgpg-error] argparse: Remove a duplicated condition.

Collin Funk via Gnupg-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <4588d6e0cc5b193c3f135b7d787038aa258f583e.1749331811.git.collin.funk1@gmail.com>
* src/argparse.c (emulated_registry_lookup): Remove duplicated
condition.

--

Signed-off-by: Collin Funk <[email protected]>
---
 src/argparse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/argparse.c b/src/argparse.c
index bb33370..5fb03b3 100644
--- a/src/argparse.c
+++ b/src/argparse.c
@@ -1263,7 +1263,7 @@ emulated_registry_lookup (gpgrt_argparse_t *arg, const char *name, int *r_err)
       estream_t fp;
       char *p;
 
-      if (!arg->internal->confname || !arg->internal->confname)
+      if (!arg->internal->confname)
         return NULL;  /* No system conf file known.  */
 
       fname = xtrymalloc (strlen (arg->internal->confname) + 8 + 2 );
-- 
2.49.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.