mt76: update to the latest version
[openwrt/staging/chunkeey.git] / toolchain / gcc / patches / 6.3.0 / 960-fix-ubsan-defref.patch
1 --- a/gcc/ubsan.c
2 +++ b/gcc/ubsan.c
3 @@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc)
4
5 expanded_location xloc = expand_location (loc);
6 if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
7 - || xloc.file == '\0' || xloc.file[0] == '\xff'
8 + || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
9 || xloc.file[1] == '\xff')
10 return false;
11