Skip to content

Commit 1c87c23

Browse files
committed
Merge branch 'master' of github.com:totalspectrum/spin2cpp
2 parents 4f40fb0 + 853cfcd commit 1c87c23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontends/c/cgram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ MakeNewStruct(Module *Parent, AST *skind, AST *identifier, AST *body, AST *optio
805805
const char *root = strrchr(stem_name, '/');
806806
if (root) stem_name = root+1;
807807
#ifdef WIN32
808-
root = strrchr(root, '\\');
808+
if (root) root = strrchr(root, '\\');
809809
if (root) stem_name = root+1;
810810
#endif
811811
sprintf(buf, "__anon_%s_%08d", stem_name, current->Lptr->lineCounter);

0 commit comments

Comments
 (0)