I should not write code when it is hot outside
clean up a if statement for realloc
Modified: trunk/reactos/subsys/system/cmd/copy.c
_____
Modified: trunk/reactos/subsys/system/cmd/copy.c
--- trunk/reactos/subsys/system/cmd/copy.c 2005-07-15 18:31:42 UTC
(rev 16589)
+++ trunk/reactos/subsys/system/cmd/copy.c 2005-07-15 18:38:01 UTC
(rev 16590)
@@ -280,7 +280,7 @@
{
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
}
- if ((size > 1) && (size > 512))
+ if (size > 512)
{
evar = realloc(evar,size * sizeof(TCHAR) );
if (evar!=NULL)
Show replies by date