summaryrefslogtreecommitdiff
path: root/lib/libXaw/src/AsciiSrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXaw/src/AsciiSrc.c')
-rw-r--r--lib/libXaw/src/AsciiSrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libXaw/src/AsciiSrc.c b/lib/libXaw/src/AsciiSrc.c
index b23ba4fca..eb569fc9f 100644
--- a/lib/libXaw/src/AsciiSrc.c
+++ b/lib/libXaw/src/AsciiSrc.c
@@ -1448,7 +1448,7 @@ InitStringOrFile(AsciiSrcObject src, Bool newString)
if (src->ascii_src.string == NULL)
XtErrorMsg("NoFile", "asciiSourceCreate", "XawError",
"Creating a read only disk widget and no file specified.",
- NULL, 0);
+ NULL, NULL);
open_mode = O_RDONLY;
fdopen_mode = "r";
break;
@@ -1779,7 +1779,7 @@ GetDefaultPieceSize(Widget w, int offset, XrmValue *value)
{
static XPointer pagesize;
- if (pagesize == 0) {
+ if (pagesize == NULL) {
pagesize = (XPointer)((long)_XawGetPageSize());
if (pagesize < (XPointer)BUFSIZ)
pagesize = (XPointer)BUFSIZ;