all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob a002c48169438ef96a6346f12fd01b81bc7552c4 605 bytes (raw)
name: gnu/packages/patches/torcs-nullptr.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
Source: https://src.fedoraproject.org/rpms/torcs/raw/rawhide/f/torcs-1.3.7-nullptr.patch
Upstream-status: https://sourceforge.net/p/torcs/mailman/message/36490328/

--- torcs-1.3.7/src/libs/musicplayer/OpenALMusicPlayer.cpp.orig	2014-02-05 10:54:43.000000000 +0100
+++ torcs-1.3.7/src/libs/musicplayer/OpenALMusicPlayer.cpp	2018-07-09 20:56:42.521607205 +0100
@@ -161,7 +161,7 @@
 {
 	char pcm[BUFFERSIZE];
 	int size = 0;
-	const char* error = '\0';
+	const char* error = nullptr;
 	
 	if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
 		GfError("OpenALMusicPlayer: Stream read error: %s\n", error);

debug log:

solving a002c48169 ...
found a002c48169 in https://yhetil.org/guix/46b8369068d2a07dc772cff47e0143e2714e4edb.1729785827.git.maxim.cournoyer@gmail.com/

applying [1/1] https://yhetil.org/guix/46b8369068d2a07dc772cff47e0143e2714e4edb.1729785827.git.maxim.cournoyer@gmail.com/
diff --git a/gnu/packages/patches/torcs-nullptr.patch b/gnu/packages/patches/torcs-nullptr.patch
new file mode 100644
index 0000000000..a002c48169

1:14: space before tab in indent.
 	char pcm[BUFFERSIZE];
1:15: space before tab in indent.
 	int size = 0;
1:18: trailing whitespace.
 	
1:19: space before tab in indent.
 	if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
1:20: space before tab in indent.
 		GfError("OpenALMusicPlayer: Stream read error: %s\n", error);
Checking patch gnu/packages/patches/torcs-nullptr.patch...
Applied patch gnu/packages/patches/torcs-nullptr.patch cleanly.
warning: 5 lines add whitespace errors.

index at:
100644 a002c48169438ef96a6346f12fd01b81bc7552c4	gnu/packages/patches/torcs-nullptr.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.