forked from enlightenment/efl
elementary/quicklaunch - [E-devel] [Patch] quicklaunch patch
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
This commit is contained in:
parent
3983da5dbf
commit
192938a19a
|
@ -95,10 +95,10 @@ handle_run(int fd, unsigned long bytes)
|
||||||
int argc;
|
int argc;
|
||||||
|
|
||||||
buf = alloca(bytes);
|
buf = alloca(bytes);
|
||||||
if (read(fd, buf, bytes) < 0)
|
if (read(fd, buf, bytes) <= 0)
|
||||||
{
|
{
|
||||||
close(fd);
|
close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
argc = ((unsigned long *)(buf))[0];
|
argc = ((unsigned long *)(buf))[0];
|
||||||
|
|
Loading…
Reference in New Issue