|
发表于 2006-2-10 14:27:28
|
显示全部楼层
[quote:86128e0699="dalin"]ml 2.0rc1
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
已放弃 [/quote]
补丁如下:
[code:1]
--- BitStormLite-0.2b/src/utils.h.orig 2006-01-16 20:51:12.000000000 +0000
+++ BitStormLite-0.2b/src/utils.h 2006-01-16 20:45:22.000000000 +0000
@@ -380,7 +380,7 @@
gsize bytes_written;
gchar* ret = g_filename_from_utf8(input_text, -1, &bytes_read, &bytes_written, NULL);
- std::string result = ret;
+ std::string result = ret ? ret : input_text;
g_free(ret);
return result;
[/code:1] |
|