0001-media-Fix-usage-of-application-id.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 2626058a7921749387f8d3107241af7507f48c65 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
  3. Date: Mon, 1 Apr 2019 22:40:48 +0200
  4. Subject: [PATCH] media: Fix usage of application id
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Christophe Fergeau pointed this issue out during the review of 6d789033e
  9. and, even though, the bogus code ended up merged (sorry, mea culpa
  10. here!).
  11. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
  12. Reviewed-by: Cole Robinson <crobinso@redhat.com>
  13. ---
  14. osinfo/osinfo_media.c | 4 ++--
  15. 1 file changed, 2 insertions(+), 2 deletions(-)
  16. diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c
  17. index b16fcf6..4f86c2b 100644
  18. --- a/osinfo/osinfo_media.c
  19. +++ b/osinfo/osinfo_media.c
  20. @@ -830,10 +830,10 @@ create_from_location_async_data(CreateFromLocationAsyncData *data)
  21. osinfo_entity_set_param(OSINFO_ENTITY(media),
  22. OSINFO_MEDIA_PROP_PUBLISHER_ID,
  23. data->publisher);
  24. - if (!is_str_empty(data->pvd.application))
  25. + if (!is_str_empty(data->application))
  26. osinfo_entity_set_param(OSINFO_ENTITY(media),
  27. OSINFO_MEDIA_PROP_APPLICATION_ID,
  28. - data->pvd.application);
  29. + data->application);
  30. index = (G_BYTE_ORDER == G_LITTLE_ENDIAN) ? 0 : 1;
  31. vol_size = ((gint64) data->pvd.volume_space_size[index]) *
  32. --
  33. 2.20.1