[PATCH] Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

Thomas Schulz schulz at adi.com
Thu Mar 16 14:16:40 UTC 2017


Here is a fix for Bug 12693 titled:
dbwrap_watch.c", line 281: syntax error before or at: }

>From 74531334f3fe38fe420ab59b3f0f1c48d0754249 Mon Sep 17 00:00:00 2001
From: Tom <schulz at adi.com>
Date: Wed, 15 Mar 2017 12:08:33 -0400
Subject: [PATCH] Changes to make the Solaris C compiler happy.

Fix Bug 12693 dbwrap_watch.c syntax error before or at: }
Signed-off-by: Tom schulz <schulz at adi.com>
---
 source3/lib/dbwrap/dbwrap_watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c
index 842ab86..efff478 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -279,7 +279,7 @@ static struct db_record *dbwrap_watched_fetch_locked(
 	num_watchers = dbwrap_watched_parse(subrec_value, NULL, 0, NULL, NULL);
 	if (num_watchers == -1) {
 		/* Fresh or invalid record */
-		rec->value = (TDB_DATA) {};
+		rec->value = (TDB_DATA) { 0 };
 		return rec;
 	}
 
-- 
2.6.1


Tom Schulz
Applied Dynamics Intl.
schulz at adi.com



More information about the samba-technical mailing list