Changeset 3c1d387 in rtems


Ignore:
Timestamp:
Nov 9, 2012, 3:02:02 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b5b1f44
Parents:
0f0db894
git-author:
Sebastian Huber <sebastian.huber@…> (11/09/12 15:02:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/13/12 08:38:03)
Message:

Filesystem: Preserve source NULL pointer in mount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/mount.c

    r0f0db894 r3c1d387  
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
    13  *  Copyright (c) 2010 embedded brains GmbH.
     13 *  Copyright (c) 2010-2012 embedded brains GmbH.
    1414 *
    1515 *  The license and distribution terms for this file may be
     
    7474    str += filesystemtype_size;
    7575
    76     memcpy( str, source_or_null, source_size );
    77     mt_entry->dev = str;
    78     str += source_size;
     76    if ( source_or_null != NULL ) {
     77      memcpy( str, source_or_null, source_size );
     78      mt_entry->dev = str;
     79      str += source_size;
     80    }
    7981
    8082    memcpy( str, target, target_size );
Note: See TracChangeset for help on using the changeset viewer.