We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c77f4 commit f5862e5Copy full SHA for f5862e5
ext/ruby_debug/ruby_debug.c
@@ -9,7 +9,7 @@
9
#include <insns_info.inc>
10
#include "ruby_debug.h"
11
12
-#define DEBUG_VERSION "0.11.30.pre9"
+#define DEBUG_VERSION "0.11.30.pre10"
13
14
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
15
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -534,7 +534,7 @@ filename_cmp(VALUE source, char *file) {
534
char path[PATH_MAX + 1];
535
path[PATH_MAX] = 0;
536
537
- if (realpath(RSTRING_PTR(source), path) != NULL)
+ if (realpath(file, path) != NULL)
538
return filename_cmp_impl(source, path);
539
else
540
return filename_cmp_impl(source, file);
0 commit comments