Commits

Anonymous committed a41fb68

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

Comments (0)

Files changed (1)

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;