* src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
[fw/sdcc] / support / Util / MySystem.c
index b735cd640f4ad34ec6cef5e12a785f3eee9cef80..089b6b55d6095c7ef50f311898778798560e93a2 100644 (file)
@@ -243,16 +243,13 @@ merge_command(const char *command, const char *params)
 
 
 /*!
- * check if the path is absolute
+ * check if the path is relative or absolute (if contains the dir separator)
  */
 
 static int
 has_path(const char *path)
 {
-  if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
-      return 0;
-
-  return 1;
+  return dbuf_splitPath(path, NULL, NULL);
 }