From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-gfx/f-spot/files: f-spot-0.8.0-empty-crash.patch |
Date: | Fri, 01 Oct 2010 19:40:24 |
Message-Id: | 20101001194019.EC24820054@flycatcher.gentoo.org |
1 | pacho 10/10/01 19:40:19 |
2 | |
3 | Added: f-spot-0.8.0-empty-crash.patch |
4 | Log: |
5 | Version bump |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-gfx/f-spot/files/f-spot-0.8.0-empty-crash.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/f-spot/files/f-spot-0.8.0-empty-crash.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/f-spot/files/f-spot-0.8.0-empty-crash.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: f-spot-0.8.0-empty-crash.patch |
15 | =================================================================== |
16 | From 9054153b3b40f76f7e094ca8db98de0eaca62808 Mon Sep 17 00:00:00 2001 |
17 | From: Ruben Vermeersch <ruben@×××××××.be> |
18 | Date: Wed, 15 Sep 2010 17:56:40 +0000 |
19 | Subject: Don't crash with empty databases. |
20 | |
21 | --- |
22 | diff --git a/src/Clients/MainApp/FSpot/App.cs b/src/Clients/MainApp/FSpot/App.cs |
23 | index cdcfeea..53bdcb4 100644 |
24 | --- a/src/Clients/MainApp/FSpot/App.cs |
25 | +++ b/src/Clients/MainApp/FSpot/App.cs |
26 | @@ -223,7 +223,7 @@ namespace FSpot |
27 | { |
28 | // Some users get wonky URIs here, trying to work around below. |
29 | // https://bugzilla.gnome.org/show_bug.cgi?id=629248 |
30 | - if (path.StartsWith ("gphoto2:usb:")) { |
31 | + if (path != null && path.StartsWith ("gphoto2:usb:")) { |
32 | path = String.Format ("gphoto2://[{0}]", path.Substring (8)); |
33 | } |
34 | |
35 | -- |
36 | cgit v0.8.3.1 |