* background.c (background_attention): Fix calling functions

with wrong arguments, which resulted in segmentation faults.
This commit is contained in:
Pavel Roskin 2002-09-28 05:10:29 +00:00
parent 35c57c4a3f
commit 0e9e693c9d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-28 Pavel Roskin <proski@gnu.org>
* background.c (background_attention): Fix calling functions
with wrong arguments, which resulted in segmentation faults.
2002-09-27 Pavel Roskin <proski@gnu.org>
* file.c (panel_operate): Replace fancy internationalized

View File

@ -313,7 +313,7 @@ background_attention (int fd, void *closure)
/* Handle the call */
if (type == Return_Integer){
if (have_ctx)
if (!have_ctx)
switch (argc){
case 1:
result = (*(int (*)(int, char *))routine)(Background, data [0]);