summaryrefslogtreecommitdiff
path: root/apps/x11_main.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-12-30 15:43:42 +0000
committerSebastian Rasmussen <sebras@hotmail.com>2010-12-30 15:43:42 +0000
commit559252258781ed2f0eecd34d16a7b84ec52c0e21 (patch)
tree3efbcada2f2e940f44f5212b595503d52e0e8fd4 /apps/x11_main.c
parent6e2a8f21f83b87bbf0530d92f809a3aea6aba724 (diff)
downloadmupdf-559252258781ed2f0eecd34d16a7b84ec52c0e21.tar.xz
Adhere to nil idiom.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r--apps/x11_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index 395f9fd8..9ef08012 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -93,7 +93,7 @@ void winerror(pdfapp_t *app, fz_error error)
char *winpassword(pdfapp_t *app, char *filename)
{
char *r = password;
- password = NULL;
+ password = nil;
return r;
}
@@ -289,7 +289,7 @@ static void winblit(pdfapp_t *app)
{
int i = gapp.image->w*gapp.image->h;
unsigned char *color = malloc(i*4);
- if (color != NULL)
+ if (color != nil)
{
unsigned char *s = gapp.image->samples;
unsigned char *d = color;