[Pcsclite-cvs-commit] r5660 - /trunk/Drivers/ccid/src/ccid.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Mar 18 09:56:54 UTC 2011


Author: rousseau
Date: Fri Mar 18 09:56:48 2011
New Revision: 5660

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5660
Log:
ccid_error(): simplify code and avoids a "clang --analyze" warning

ccid.c:490:5: warning: Value stored to 'text' is never read
                                text = var_text;
                                ^      ~~~~~~~~

Modified:
    trunk/Drivers/ccid/src/ccid.c

Modified: trunk/Drivers/ccid/src/ccid.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid.c?rev=5660&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid.c (original)
+++ trunk/Drivers/ccid/src/ccid.c Fri Mar 18 09:56:48 2011
@@ -484,15 +484,13 @@
 
 		default:
 			if ((error >= 1) && (error <= 127))
-			{
 				(void)snprintf(var_text, sizeof(var_text), "error on byte %d",
 					error);
-				text = var_text;
-			}
 			else
 				(void)snprintf(var_text, sizeof(var_text),
 					"Unknown CCID error: 0x%02X", error);
-				text = var_text;
+
+			text = var_text;
 			break;
 	}
 	log_msg(PCSC_LOG_ERROR, "%s:%d:%s %s", file, line, function, text);




More information about the Pcsclite-cvs-commit mailing list