git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security: Mitigate possible privilege escalation via SG_IO ioctl (CVE-2011-4127,...
[libguestfs.git]
/
fish
/
inspect.c
diff --git
a/fish/inspect.c
b/fish/inspect.c
index
5e1948c
..
07af818
100644
(file)
--- a/
fish/inspect.c
+++ b/
fish/inspect.c
@@
-142,7
+142,7
@@
void
print_inspect_prompt (void)
{
char *name = guestfs_inspect_get_product_name (g, root);
print_inspect_prompt (void)
{
char *name = guestfs_inspect_get_product_name (g, root);
- if (STRNEQ (name, "unknown"))
+ if (
name &&
STRNEQ (name, "unknown"))
printf (_("Operating system: %s\n"), name);
free (name);
printf (_("Operating system: %s\n"), name);
free (name);