[brasero: 1/2] Check pointer before strcmp() call
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero: 1/2] Check pointer before strcmp() call
- Date: Thu, 16 Aug 2018 17:04:59 +0000 (UTC)
commit 1914ba3aede6cc33071ea7fe30e10d0037a450a3
Author: Geyslan <geyslan gmail com>
Date: Sat Aug 11 11:54:56 2018 -0300
Check pointer before strcmp() call
Due an unchecked pointer, a strcmp() call was crashing with a malformed URI.
Signed-off-by: Geyslan <geyslan gmail com>
nautilus/nautilus-burn-extension.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index df93a02a..3be8e5fa 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -714,6 +714,8 @@ nautilus_disc_burn_get_background_items (NautilusMenuProvider *provider,
items = NULL;
scheme = nautilus_file_info_get_uri_scheme (current_folder);
+ if (!scheme)
+ return NULL;
if (strcmp (scheme, "burn") == 0) {
NautilusMenuItem *item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]