VirtualBox

Changeset 14982 in vbox


Ignore:
Timestamp:
Dec 4, 2008 1:49:02 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40352
Message:

include/VBox/sysfs.h: NULL pointer check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sysfs.h

    r14711 r14982  
    8282    if (pcbBufActual != NULL && (RT_SUCCESS(rc) || rc == VERR_BUFFER_OVERFLOW))
    8383        *pcbBufActual = cbBufActual + 1;  /* +1 for the '\0' */
    84     RTStrmClose(pStream);
     84    if (pStream != NULL)
     85        RTStrmClose(pStream);
    8586    return rc;
    8687}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette