summaryrefslogtreecommitdiff
path: root/Bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Bitmap.c')
-rw-r--r--Bitmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bitmap.c b/Bitmap.c
index 704cb98..bcab0ab 100644
--- a/Bitmap.c
+++ b/Bitmap.c
@@ -41,6 +41,7 @@ from The Open Group.
#include "BitmapP.h"
#include "Bitmap.h"
+#include <assert.h>
#include <stdio.h>
#include <math.h>
@@ -1238,6 +1239,8 @@ BWGetFilepath(Widget w, String *str)
String end;
*str = XtNewString(BW->bitmap.filename);
+ assert(*str);
+
end = strrchr(*str, '/');
if (end)