summaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2015-12-09 00:50:05 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-12-09 00:50:05 +0100
commit008ff1b88b3e9cdd13e82d0ec4fb573c977f6a3d (patch)
treec3965820d4435f4f35448e00cc2fbacb0d93f933 /drw.c
parentedb46305647d909199a860b6b0812595742f6fe4 (diff)
downloadsent-008ff1b88b3e9cdd13e82d0ec4fb573c977f6a3d.tar.gz
sent-008ff1b88b3e9cdd13e82d0ec4fb573c977f6a3d.tar.bz2
sent-008ff1b88b3e9cdd13e82d0ec4fb573c977f6a3d.zip
fix 2 uninitialized variables and bin == NULL check
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drw.c b/drw.c
index 15797ce..be30400 100644
--- a/drw.c
+++ b/drw.c
@@ -228,7 +228,7 @@ int
drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, const char *text, int invert) {
char buf[1024];
int tx, ty, th;
- unsigned int ew;
+ unsigned int ew = 0;
Colormap cmap;
Visual *vis;
XftDraw *d;
Software created with 💖