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:
RAJEEV RANJAN 2011-11-30 00:16:36 +00:00 committed by ChunEon Park
parent 3983da5dbf
commit 192938a19a
1 changed files with 3 additions and 3 deletions

View File

@ -95,10 +95,10 @@ handle_run(int fd, unsigned long bytes)
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];