opnsense-ports/sysutils/xstow/files/patch-src__leoini.h
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

16 lines
402 B
C++

--- src/leoini.h~ 2013-06-01 22:28:45.000000000 +0300
+++ src/leoini.h 2013-06-01 22:32:05.000000000 +0300
@@ -260,11 +260,9 @@
if( start == std::string::npos ||
end == std::string::npos )
- s = "";
- else
- s = s.substr( start+1, start-end -1 );
+ return s2x<A>("");
- return s2x<A>(s);
+ return s2x<A>(s.substr( start+1, start-end -1 ));
}
} // namespace Leo