Skip to content

Commit e744c16

Browse files
committed
Avoid a crash if a .fpide file is not found
1 parent 09b3ee3 commit e744c16

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 7.0.2
2+
- Avoid a crash if a .fpide file is not found
3+
14
Version 7.0.1
25
- Fixed incorrect casts of arrays
36
- Fixed incorrect handling of weak symbol aliases

spinc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ ProcessModule(Module *P)
398398
{
399399
Module *lastcurrent = current;
400400

401+
if (!P) return;
402+
401403
current = P;
402404
P->botcomment = GetComments();
403405

@@ -1617,7 +1619,8 @@ ParseTopFiles(const char *argv[], int argc, int outputBin)
16171619
if (IsIdeFileName(name)) {
16181620
P = ParseIdeFile(P, name, &is_dup);
16191621
if (needName) {
1620-
P->fullname = name;
1622+
if (P)
1623+
P->fullname = name;
16211624
needName = false;
16221625
}
16231626
} else {

version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#define VERSION_MAJOR 7
88
#define VERSION_MINOR 0
9-
#define VERSION_REV 1
10-
//#define BETA "-beta"
9+
#define VERSION_REV 2
10+
#define BETA "-beta"
1111

1212
#define VERSIONSTR version_string
1313

0 commit comments

Comments
 (0)