From 7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 20 Aug 2009 10:23:39 +0000 Subject: (svn r17228) -Codechange: some coding style fixes --- src/fios.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fios.cpp') diff --git a/src/fios.cpp b/src/fios.cpp index 56048197f..bee76a1d6 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -102,11 +102,14 @@ const char *FiosBrowseTo(const FiosItem *item) s[0] = '\0'; // Remove last path separator character, so we can go up one level. } s = strrchr(path, PATHSEPCHAR); - if (s != NULL) s[1] = '\0'; // go up a directory + if (s != NULL) { + s[1] = '\0'; // go up a directory #if defined(__MORPHOS__) || defined(__AMIGAOS__) /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */ - else if ((s = strrchr(path, ':')) != NULL) s[1] = '\0'; + } else if ((s = strrchr(path, ':')) != NULL) { + s[1] = '\0'; #endif + } break; } -- cgit v1.2.3-54-g00ecf