Project

General

Profile

Actions

Bug #12201

closed

nkf.c static void fold_conv part of exression always true

Added by fanantoxa (Anton Sivakov) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:74472]

Description

/* new line */
	if (fold_preserve_f) {
	    f_prev = c1;
	    f_line = 0;
	    fold_state =  CR;
	} else if ((f_prev == c1 && !fold_preserve_f)
		   || (f_prev == LF && fold_preserve_f)
		  ) {        /* duplicate newline */

f_prev == c1 && !fold_preserve_f - here expression !fold_preserve_f always true because above we have if (fold_preserve_f) and here 'else if'

(f_prev == LF && fold_preserve_f) - this expression alway will be false for the same reason


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop tooClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0