summaryrefslogtreecommitdiff
path: root/src/decompiler-naming.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/decompiler-naming.h')
-rw-r--r--src/decompiler-naming.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decompiler-naming.h b/src/decompiler-naming.h
index 91f841f8..bb7a0819 100644
--- a/src/decompiler-naming.h
+++ b/src/decompiler-naming.h
@@ -85,6 +85,9 @@ inline void RenameToIdentifier(std::string& name,
if (s.size() > max_identifier_length) {
s.resize(max_identifier_length);
}
+ if (s.empty()) {
+ s = "__empty";
+ }
// Remove original binding first, such that it doesn't match with our
// new name.
bh.erase(name);