summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-05-27 07:26:04 +0000
committerTim Potter <tpot@samba.org>2003-05-27 07:26:04 +0000
commit797add4a73e4f46a7560bda7e6e4eac79024c1e2 (patch)
tree90a44796a1f7c079aca5e4cae1d09ec0d4d0d2a0 /source3
parent3ddaeed2828d96dbddfd2232e63e6cbceb74dc36 (diff)
downloadsamba-797add4a73e4f46a7560bda7e6e4eac79024c1e2.tar.gz
samba-797add4a73e4f46a7560bda7e6e4eac79024c1e2.tar.bz2
samba-797add4a73e4f46a7560bda7e6e4eac79024c1e2.zip
Fixed unused variable warning.
(This used to be commit cdbe47a5d517eea95186aecdc3327160236a5d09)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 4452de8b4b..95d3403a7c 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1428,7 +1428,6 @@ void smb_panic(const char *why)
{
char *cmd;
int result;
- size_t i;
#ifdef HAVE_BACKTRACE_SYMBOLS
void *backtrace_stack[BACKTRACE_STACK_SIZE];
size_t backtrace_size;
@@ -1470,6 +1469,8 @@ void smb_panic(const char *why)
DEBUG(0, ("BACKTRACE: %d stack frames:\n", backtrace_size));
if (backtrace_strings) {
+ int i;
+
for (i = 0; i < backtrace_size; i++)
DEBUGADD(0, (" #%u %s\n", i, backtrace_strings[i]));