Commits

Anonymous committed 8dbd1b9

Avoid potential for undefined variable 'startinpos' in PyUnicode_DecodeUTF7().
See issue #5389.

  • Participants
  • Parent commits c74fd75
  • Branches 2.5

Comments (0)

Files changed (1)

File Objects/unicodeobject.c

                     }
                 } else if (SPECIAL(ch,0,0)) {
                     errmsg = "unexpected special character";
-	                goto utf7Error;
+	            goto utf7Error;
                 } else  {
                     *p++ = ch;
                 }
             }
         }
         else if (SPECIAL(ch,0,0)) {
+            startinpos = s-starts;
             errmsg = "unexpected special character";
             s++;
-	        goto utf7Error;
+            goto utf7Error;
         }
         else {
             *p++ = ch;