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>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65699
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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];