summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c3
-rw-r--r--Modules/main.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index a92cc8e..c7d3778 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1806,7 +1806,8 @@ PyCurses_EraseChar(PyObject *self)
static PyObject *
PyCurses_getsyx(PyObject *self)
{
- int x,y;
+ int x = 0;
+ int y = 0;
PyCursesInitialised
diff --git a/Modules/main.c b/Modules/main.c
index 8352e66..22794da 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -131,9 +131,9 @@ usage(int exitcode, wchar_t* program)
if (exitcode)
fprintf(f, "Try `python -h' for more information.\n");
else {
- fprintf(f, usage_1);
- fprintf(f, usage_2);
- fprintf(f, usage_3);
+ fputs(usage_1, f);
+ fputs(usage_2, f);
+ fputs(usage_3, f);
fprintf(f, usage_4, DELIM);
fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
}