sync
This commit is contained in:
parent
c03d9440cb
commit
19e50fc058
@ -2183,7 +2183,7 @@ vips_object_set_from_string( VipsObject *object, const char *string )
|
|||||||
/* Does string start with a bracket? If it doesn't, enclose the whole
|
/* Does string start with a bracket? If it doesn't, enclose the whole
|
||||||
* thing in [].
|
* thing in [].
|
||||||
*/
|
*/
|
||||||
if( !(q = vips__token_get( buffer, &token, str, VIPS_PATH_MAX )) !!
|
if( !(q = vips__token_get( buffer, &token, str, VIPS_PATH_MAX )) ||
|
||||||
token != VIPS_TOKEN_LEFT )
|
token != VIPS_TOKEN_LEFT )
|
||||||
vips_snprintf( buffer, VIPS_PATH_MAX, "[%s]", string );
|
vips_snprintf( buffer, VIPS_PATH_MAX, "[%s]", string );
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user