summaryrefslogtreecommitdiff
path: root/atari/misc.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-04-10 21:49:27 +0000
committerOle Loots <ole@monochrom.net>2011-04-10 21:49:27 +0000
commit8723876bd53dc4137743e89e2df0ac690e6c1542 (patch)
treec0499e3c18b8510b3dbe95c3745d1bc3e3fb45ab /atari/misc.c
parent9520ad67fe1435a56078dee76d6f47245b204ad7 (diff)
downloadnetsurf-8723876bd53dc4137743e89e2df0ac690e6c1542.tar.gz
netsurf-8723876bd53dc4137743e89e2df0ac690e6c1542.tar.bz2
cleanup, fixed invalid option name (downloads_path)
svn path=/trunk/netsurf/; revision=12181
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-xatari/misc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/atari/misc.c b/atari/misc.c
index 2817cdbc6..fcefee4e5 100755
--- a/atari/misc.c
+++ b/atari/misc.c
@@ -70,6 +70,8 @@ char *filename_from_path(char *path)
char *leafname;
leafname = strrchr(path, '\\');
+ if( !leafname )
+ leafname = strrchr(path, '/');
if (!leafname)
leafname = path;
else
@@ -101,7 +103,6 @@ bool path_add_part(char *path, int length, const char *newpart)
struct gui_window * find_root_gui_window( WINDOW * win )
{
- int i=0;
struct gui_window * gw;
gw = window_list;
while( gw != NULL ) {
@@ -110,8 +111,6 @@ struct gui_window * find_root_gui_window( WINDOW * win )
}
else
gw = gw->next;
- i++;
- assert( i < 1000);
}
return( NULL );
}
@@ -120,7 +119,6 @@ struct gui_window * find_root_gui_window( WINDOW * win )
struct gui_window * find_cmp_window( COMPONENT * c )
{
struct gui_window * gw;
- int i=0;
gw = window_list;
while( gw != NULL ) {
assert( gw->browser != NULL );
@@ -129,8 +127,6 @@ struct gui_window * find_cmp_window( COMPONENT * c )
}
else
gw = gw->next;
- i++;
- assert( i < 1000);
}
return( NULL );
}