Index: /trunk/src/VBox/Runtime/common/vfs/vfschain.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/vfs/vfschain.cpp	(revision 51650)
+++ /trunk/src/VBox/Runtime/common/vfs/vfschain.cpp	(revision 51651)
@@ -613,9 +613,10 @@
 RTDECL(int) RTVfsChainOpenIoStream(const char *pszSpec, uint64_t fOpen, PRTVFSIOSTREAM phVfsIos, const char **ppszError)
 {
+    if (ppszError)
+        *ppszError = NULL;
+
     AssertPtrReturn(pszSpec, VERR_INVALID_POINTER);
     AssertReturn(*pszSpec != '\0', VERR_INVALID_PARAMETER);
     AssertPtrReturn(phVfsIos, VERR_INVALID_POINTER);
-    if (ppszError)
-        *ppszError = NULL;
 
     /*
