Author: hbelusca Date: Mon Jun 19 16:30:17 2017 New Revision: 75134
URL: http://svn.reactos.org/svn/reactos?rev=75134&view=rev Log: [NTOS]: Avoid initializing variables within if-conditions.
Modified: trunk/reactos/ntoskrnl/ob/oblife.c
Modified: trunk/reactos/ntoskrnl/ob/oblife.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=75... ============================================================================== --- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Mon Jun 19 16:30:17 2017 @@ -405,7 +405,8 @@ }
/* Make sure there really is a string */ - if ((StringLength = LocalName.Length)) + StringLength = LocalName.Length; + if (StringLength) { /* Check that the size is a valid WCHAR multiple */ if ((StringLength & (sizeof(WCHAR) - 1)) ||