a. Fix to handle the condition when read returns 0 and the content of buf is uninitialized in function handle_run inside file "src/bin/quicklaunch.c".
b. Indentation correction in function handle_run around the location of fix above.
Signed-Off-By: RAJEEV RANJAN <rajeev.r@samsumg.com>
Signed-Off-By: PRINCE KUMAR DUBEY <prince.dubey@samsung.com>
Signed-Off-By: ChunEon Park <hermet@hermet.pe.kr>
SVN revision: 65699
int argc;
buf = alloca(bytes);
- if (read(fd, buf, bytes) < 0)
+ if (read(fd, buf, bytes) <= 0)
{
- close(fd);
- return;
+ close(fd);
+ return;
}
close(fd);
argc = ((unsigned long *)(buf))[0];