void-packages/srcpkgs/xen/files/gcc6_fix_1.patch

14 lines
311 B
Diff

--- ipxe/src/core/stringextra.c 2011-12-11 03:28:04.000000000 +0100
+++ ipxe/src/core/stringextra.c 2016-10-13 11:29:05.025171208 +0200
@@ -186,7 +186,9 @@
{
char *sbegin, *send;
- sbegin = s ? s : ___strtok;
+ sbegin = s;
+ if (!sbegin)
+ sbegin = ___strtok;
if (!sbegin) {
return NULL;
}