fix path bug
This commit is contained in:
@@ -67,7 +67,11 @@ ArErr create_err(int64_t line, int64_t column, int length, char *path,
|
|||||||
const char *type, const char *fmt, ...) {
|
const char *type, const char *fmt, ...) {
|
||||||
ArErr err;
|
ArErr err;
|
||||||
err.exists = true;
|
err.exists = true;
|
||||||
|
if (path)
|
||||||
strcpy(err.path, path);
|
strcpy(err.path, path);
|
||||||
|
else {
|
||||||
|
err.path[0] = '\0';
|
||||||
|
}
|
||||||
err.line = line;
|
err.line = line;
|
||||||
err.column = column;
|
err.column = column;
|
||||||
err.length = length;
|
err.length = length;
|
||||||
|
|||||||
Reference in New Issue
Block a user