* pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr to keep
authorKen Raeburn <raeburn@mit.edu>
Tue, 10 Apr 2001 03:32:34 +0000 (03:32 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 10 Apr 2001 03:32:34 +0000 (03:32 +0000)
compiler happy.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13151 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/pcbc_encrypt.c

index 3efa1a30eeef848a9f9b968731f3d39e22f3c5e1..3e19c6137126d22080a79dc90a721526d829ec20 100644 (file)
@@ -1,5 +1,8 @@
 2001-04-09  Ken Raeburn  <raeburn@mit.edu>
 
+       * pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr
+       to keep compiler happy.
+
        * des.h: Deleted to avoid confusion with the other des.h in the
        tree.  All files changed to include des_int.h and
        (the other) des.h instead.
index dd9ad19954c31cbc240004da29eaa749927f85e0..e47817061034e3763705bab7308310444c725e39 100644 (file)
@@ -15,7 +15,8 @@
  * des_pcbc_encrypt.c - encrypt a string of characters in error propagation mode
  */
 
-#include "des425.h"
+#include "des_int.h"
+#include "des.h"
 #include <f_tables.h>
 
 /*
@@ -44,8 +45,13 @@ des_pcbc_encrypt(in, out, length, schedule, ivec, encrypt)
         * Deal with encryption and decryption separately.
         */
        if (encrypt) {
-               register unsigned DES_INT32 plainl;
-               register unsigned DES_INT32 plainr;
+               /* Initialization isn't really needed here, but gcc
+                  complains because it doesn't understand that the
+                  only case where these can be used uninitialized is
+                  to compute values that'll in turn be ignored
+                  because we won't go around the loop again.  */
+               register unsigned DES_INT32 plainl = 42;
+               register unsigned DES_INT32 plainr = 17;
 
                /*
                 * Initialize left and right with the contents of the initial