last try to fix NULL bug 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:21:17 UTC (rev 16587) +++ trunk/reactos/subsys/system/cmd/copy.c 2005-07-15 18:25:03 UTC (rev 16588) @@ -276,8 +276,10 @@
/* Get the envor value if it exists */ evar = malloc(512 * sizeof(TCHAR)); if (evar==NULL) size = 0; - - size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512); + else + { + size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512); + } if ((size > 1) && (size > 512)) { evar = realloc(evar,size * sizeof(TCHAR) );