|
From: <cre...@us...> - 2007-10-03 21:23:25
|
Revision: 1750
http://frontierkernel.svn.sourceforge.net/frontierkernel/?rev=1750&view=rev
Author: creecode
Date: 2007-10-03 14:23:29 -0700 (Wed, 03 Oct 2007)
Log Message:
-----------
in copyvaluerecord function, for Mac, for filespecvaluetype, only assign member path of filespecvalue when not NULL
Modified Paths:
--------------
Frontier/trunk/Common/source/langvalue.c
Modified: Frontier/trunk/Common/source/langvalue.c
===================================================================
--- Frontier/trunk/Common/source/langvalue.c 2007-10-03 19:52:48 UTC (rev 1749)
+++ Frontier/trunk/Common/source/langvalue.c 2007-10-03 21:23:29 UTC (rev 1750)
@@ -992,12 +992,13 @@
case filespecvaluetype: {
- tyfilespec fs;
+ tyfilespec fs = { { { 0 } }, 0 };
fs.fsref = ( *( ( ( v ).data ).filespecvalue ) ) -> fsref;
-
- fs.path = CFStringCreateCopy ( kCFAllocatorDefault, ( *( ( ( v ).data ).filespecvalue ) ) -> path );
+ if ( ( *( ( ( v ).data ).filespecvalue ) ) -> path != NULL )
+ fs.path = CFStringCreateCopy ( kCFAllocatorDefault, ( *( ( ( v ).data ).filespecvalue ) ) -> path );
+
return ( setfilespecvalue ( &fs, vreturned ) );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|