]> andersk Git - splint.git/commitdiff
Surpressed spurious splintme error in osd.c
authordrl7x <drl7x>
Fri, 11 Apr 2003 22:02:55 +0000 (22:02 +0000)
committerdrl7x <drl7x>
Fri, 11 Apr 2003 22:02:55 +0000 (22:02 +0000)
src/osd.c

index 24dcbf4d835eb30ceb8cf9c90f7a0a0d958eccb0..71b5de41f10f4f0978283258913a93d7b2e164eb 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -1133,7 +1133,16 @@ cstring osd_outputPath (cstring filename)
         {
           /* Give up if the result gets to be longer
              than the absolute path name.  */
-          if (rel_buffer + filename_len <= rel_buf_p + 3)
+         char * temp_rel_buf_p;
+
+         /*drl This comment is necessary because for some reason Splint
+           does not realize that the pasts where rel_buf_p is released
+           do not reach here*/
+         /*@-usereleased@*/
+         temp_rel_buf_p = rel_buf_p;
+         /*@-usereleased@*/
+         
+          if (rel_buffer + filename_len <= temp_rel_buf_p + 3)
            {
              sfree (rel_buffer);
              return cstring_copy (filename);
This page took 0.039028 seconds and 5 git commands to generate.