mirror of
https://github.com/ganelson/inform.git
synced 2024-06-30 22:14:58 +03:00
Use Str::len() instead of peeking at the pointer.
This commit is contained in:
parent
468a68dcd0
commit
f9653c2377
|
@ -36,7 +36,7 @@ inter_error_message *OrigSourceInstruction::new(inter_bookmark *IBM,
|
|||
text_stream *file_name, inter_ti line_number,
|
||||
inter_ti level, inter_error_location *eloc) {
|
||||
inter_ti FID = 0;
|
||||
if (file_name) {
|
||||
if (Str::len(file_name) > 0) {
|
||||
inter_warehouse *warehouse = InterBookmark::warehouse(IBM);
|
||||
inter_package *pack = InterBookmark::package(IBM);
|
||||
FID = InterWarehouse::create_text(warehouse, pack);
|
||||
|
|
Loading…
Reference in a new issue