From: Paul Eggert Date: Tue, 15 Mar 2011 17:18:02 +0000 (-0700) Subject: * casefiddle.c (casify_region): Mark local as initialized. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~554^2~74 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e45a141a5bab1fa5bc4c093eb2207d5d5c81e0f9;p=emacs.git * casefiddle.c (casify_region): Mark local as initialized. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9187eb7c60e..1b44f7585d6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2011-03-15 Paul Eggert * casefiddle.c (casify_object, casify_region): Now static. + (casify_region): Mark local as initialized. * cmds.c (internal_self_insert): Rename local to avoid shadowing. diff --git a/src/casefiddle.c b/src/casefiddle.c index 4ba323bf641..d2c7e572125 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -201,7 +201,10 @@ casify_region (enum case_action flag, Lisp_Object b, Lisp_Object e) register int multibyte = !NILP (BVAR (current_buffer, enable_multibyte_characters)); EMACS_INT start, end; EMACS_INT start_byte, end_byte; - EMACS_INT first = -1, last; /* Position of first and last changes. */ + + /* Position of first and last changes. */ + EMACS_INT first = -1, last IF_LINT (= 0); + EMACS_INT opoint = PT; EMACS_INT opoint_byte = PT_BYTE;