summaryrefslogtreecommitdiff
path: root/riscos/artworks.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/artworks.c')
-rw-r--r--riscos/artworks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/riscos/artworks.c b/riscos/artworks.c
index f9e8f4b63..7847daa63 100644
--- a/riscos/artworks.c
+++ b/riscos/artworks.c
@@ -103,12 +103,13 @@ bool artworks_convert(struct content *c, int width, int height)
void *init_workspace;
void *init_routine;
os_error *error;
- int used;
+ int used = -1; /* slightly better with older OSLib versions */
/* check whether AWViewer has been seen and we can therefore
locate the ArtWorks rendering modules */
- if (xos_read_var_val_size("Alias$LoadArtWorksModules", 0, os_VARTYPE_STRING,
- &used, NULL, NULL) || used >= 0) {
+ xos_read_var_val_size("Alias$LoadArtWorksModules", 0, os_VARTYPE_STRING,
+ &used, NULL, NULL);
+ if (used >= 0) {
LOG(("Alias$LoadArtWorksModules not defined"));
msg_data.error = messages_get("AWNotSeen");
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);