[Tools] winetest: We may not have a report tag for the error message.

Francois Gouget fgouget at codeweavers.com
Wed Feb 8 01:08:06 CST 2017


For instance if the commit id is not valid we issue the error message
before $tag is set.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/dissect | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winetest/dissect b/winetest/dissect
index ccb6d1d5..f5b67447 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -63,7 +63,7 @@ sub mydie(@) {
         print STDERR "$name0:error: unable to rename '$tmpdir' to '$errdir': $!\n";
         exit 3;
     }
-    my $label = substr($tag,1) || "???";
+    my $label = $tag ? substr($tag, 1) : "<notag>";
     if (open ERR, ">$errdir/error")
     {
         print ERR "$label: ", @_;
-- 
2.11.0




More information about the wine-patches mailing list