Fix: check return value on getenv USER
authorDavid Goulet <dgoulet@efficios.com>
Tue, 3 Apr 2012 14:48:04 +0000 (10:48 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 3 Apr 2012 19:03:58 +0000 (15:03 -0400)
commit41e0febd2cd002d1e365a5996f859f50efeb86e3
tree665c418e7308af5a57053b44878b2db19d0cbcc2
parent0e4cbe7e2c4c6a8343e710a3b050af8c33f95e21
Fix: check return value on getenv USER

System with no environment variable USER, one of the easter egg caused a
segfault on certain embedded linux platforms.

Other getenv() of the project were audited to ensure that the return
value is checked.

Reported-by: Ryan Kyser <Ryan.Kyser@jci.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/lttng.c
This page took 0.026085 seconds and 4 git commands to generate.