summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-26 22:01:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-03 08:31:53 -0400
commit1c92ff85b786c423f4436ec26007e79369c9ac05 (patch)
treee1916662eb943ec8ed93ed3835c13f669461a219 /.gitattributes
parent7889087d6ecf865f332eb325d8f68ff49be8277e (diff)
bootchart: use 'n/a' if PRETTY_NAME is not found
Spotted with coverity. If parsing both /etc/os-release and /usr/lib/os-release fails then null would be passed on. The calls to parse the two files are allowed to fail. A empty /etc may not have had the /etc/os-release symlink restored yet and we just try again in the loop. If for whatever reason that does not happen then we now pass on 'n/a' instead of null.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions