Thread (67 messages) flat view 67 messages, 5 authors, 2016-06-15

Re: [PATCH 9/9] vcs-svn: use strchr to find RFC822 delimiter

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:50:49

David Barr wrote:
quoted hunk ↗ jump to hunk
--- a/vcs-svn/svndump.c
+++ b/vcs-svn/svndump.c
@@ -296,10 +296,12 @@ void svndump_read(const char *url)
 
 	reset_dump_ctx(url);
 	while ((t = buffer_read_line(&input))) {
-		val = strstr(t, ": ");
+		val = strchr(t, ':');
 		if (!val)
 			continue;
 		*val++ = '\0';
+		if (*val != ' ')
+			continue;
This one and the three preceding it (removing sublibraries)
make sense.  Thanks for a pleasant read.

Good night,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help