aboutsummaryrefslogtreecommitdiffstats
path: root/icebram/icebram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icebram/icebram.cc')
-rw-r--r--icebram/icebram.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/icebram/icebram.cc b/icebram/icebram.cc
index aacf00c..9d27ca6 100644
--- a/icebram/icebram.cc
+++ b/icebram/icebram.cc
@@ -384,6 +384,10 @@ int main(int argc, char **argv)
if (verbose)
fprintf(stderr, "Found and replaced %d instances of the memory.\n", max_replace_cnt);
+ if (max_replace_cnt == 0) {
+ fprintf(stderr, "No memory instances were replaced.\n");
+ exit(2);
+ }
// -------------------------------------------------------
// Write ascfile to stdout